Re: Who is top of the Float?
On Wed, 28 Nov 2007 21:12:44 GMT, "dE|_" wrote in
<gRk3j.4119$8k2.4074@newsfe4-win.ntli.net>:
>Andrew's post reminded me of float annoyances I found before so I did a
>little test and found one straight away;
>http://www.websitefoundry.co.uk/floattest.html
>
>Plain, simple example there.
>
>Floats just ignore vital attributes that build page structure. What's going
>on?
It takes a while to find the right part of the CSS spec, but that is how
it is defined to work. The line boxes that would normally extend from
the left content edge to the right content edge of the containing box
(i.e. inside the padding) are shortened by the presence of the floated
box so that, next to a left floated box, their left edges touch the
right outer (margin) edge of the floated box.
This means, of course, that if you want a gap between the border of the
floated box and the text in the line boxes of the inline formatted
content that is flowing round it, you can get one by giving the floated
box a suitable margin.
--
Owen Rees
[one of] my preferred email address[es] and more stuff can be
found at <http://www.users.waitrose.com/~owenrees/index.html>
date: Fri, 30 Nov 2007 00:44:00 +0000
author: Owen Rees
|