gbolssens
%Europe/Berlin %432 %2008, 10:23
Hi Allemaal.
Ik ben wat CSS aan het proberen leren en ik kom in een artikel de volgende paragraaf tegen:
If you specify the width for an absolutely positioned element, either explicitly via width in percents, or implicitly via left and right, the standard says that it should be computed relative to the containing block. Both Internet Explorer and Opera get this wrong, unfortunately, and use the width of the parent element as the basis for their computations. Gecko-based
browsers like Mozilla and Firefox behave correctly.
Ik dacht altijd dat het "containing block" hetzelfde was als het HTML element waar het in zit, maar blijkbaar heb ik het mis...
Kan iemand me het verschil uitleggen of een voorbeeld geven?
edit : ik heb net de definitie van de term "containing block" gelezen op http://www.w3.org/TR/REC-CSS2/visudet.html
maar ik snap 't nog steeds niet.
greetz,
GB
Ik ben wat CSS aan het proberen leren en ik kom in een artikel de volgende paragraaf tegen:
If you specify the width for an absolutely positioned element, either explicitly via width in percents, or implicitly via left and right, the standard says that it should be computed relative to the containing block. Both Internet Explorer and Opera get this wrong, unfortunately, and use the width of the parent element as the basis for their computations. Gecko-based
browsers like Mozilla and Firefox behave correctly.
Ik dacht altijd dat het "containing block" hetzelfde was als het HTML element waar het in zit, maar blijkbaar heb ik het mis...
Kan iemand me het verschil uitleggen of een voorbeeld geven?
edit : ik heb net de definitie van de term "containing block" gelezen op http://www.w3.org/TR/REC-CSS2/visudet.html
maar ik snap 't nog steeds niet.
greetz,
GB