This is something that gets confusing. Both inline (box-model) and
absolute children (what you’re referring to in the Carousel) are
nested content. But any absolute object is effectively removed from
the page flow. It exists as a pure geometry exercise (width, height,
X and Y relative to its parent) but does not take up any space. In
the Carousel examples, content drawn over a pane becomes a child of
that pane. But if you were to double-click into the pane and start
typing, you would see that the text would run “under” the nested
boxes, not flow around it.
What you all are referring to as the box-model is simply another word
for relative positioning. Relative-positioned objects do take up
space, which is why they will reposition themselves when the text
size changes. But relative-positioned objects need to be considered
in the universe of the rest of the page. When you change the
dimensions of one element, you have to change the dimensions of
others in order to avoid running into the neighbors. It takes planning.
Where the term box model comes from is the W3C. They refer to the box
model as being the sum of the margin, border, padding, and THEN width
of an object. They don’t make any distinction between an object that
is floated (relative positioning) or an object that is absolutely
positioned.
A 200 px square box with a 1 px border and 12 px padding and 8 px
margin would be 242 px wide. (Don’t get me started about height –
there’s a whole can of worms labeled “margin-collapse” waiting in
that tunnel.) But IE, in its cheerfully unilateral fashion decided
that the box model should mean something else. In any version of IE
below 8, and even in 8 in “Quirks Mode”, the box would be 218 px
wide. But in many cases, it would appear to have a margin of 16 px
per side. You would not be able to see this box, but you could deduce
its existence, sort of like how they found Pluto, by dint of your
entire layout crashing to the ground in a puddle of flaming goo.
Walter
On Oct 9, 2008, at 1:36 AM, george wrote:
I believe I understand what you guys are saying. Obviously an item
is restricted within its html box. I can’t move the graphics
within the html box. What I don’t get is that I’ve created html
boxes for carousels and I can place the graphics anywhere within
the box.
I’ll take a look and see what I’ve done wrong. I must have
something mucked up.
Thanks.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options