und müsstest dir sogar das display:block; sparen können, da float eindisplay:block impliziert afair
Rahmen um Links
Einklappen
X
-
hast du da eine quelle zu? in selfhtml steht nur, dass man bei verwendung von float auch eine angabe zu width machen muss, was ja irgendwie logisch ist.Original geschrieben von mrhappiness
und müsstest dir sogar das display:block; sparen können, da float eindisplay:block impliziert afair
und da eine breitenangabe nur bei block level elementen wirksam ist, ist eigentlich auch noch display:block erforderlich - ob das durch float jetzt "automatisch" der fall ist, ist mir nicht bekannt.I don't believe in rebirth. Actually, I never did in my whole lives.
Kommentar
-
sure, sogar straight from the horse's mouth *g*Original geschrieben von wahsaga
hast du da eine quelle zu?hab mir das auch mal sagen lassen weil ich - clever wie ich bin - mal gefragt hatte, warum float:right und display:inline nich beides gleichzeitig greifthttp://www.w3.org/TR/REC-CSS2/visuren.html#floats tut kund:
A floated box must have an explicit width (assigned via the 'width' property, or its intrinsic width in the case of replaced elements). Any floated box becomes a block box that is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another float.Ich denke, also bin ich. - Einige sind trotzdem...
Kommentar
Moderator
Kommentar