Sent by Big John on 14 September 2002 16:04
Timothy Martens wrote:
http://home.hawaii.rr.com/timfm/CSS-Discuss/subtractive-1.html
Philippe Wittenbergh wrote:
> OK, to fix that, clear the floats in the #container.
> Now, for the margin: by adding a margin-bottom: 12px to the
> #container AND give that container a border, it works fine
> in Moz 1.2a, Opera5.0 and IE5 mac. (moz requires that border,
> I don't know why)
> <http://www.l-c-n.com/lab/4squares.html>
Moz needs the border in Win as well. But using a border then
requires a box model hack for IE5.x.
With a little extra markup that hack is unnecessary. First put
a clearing element just before the end of #container, then add
a static div 12px high between the two containers. Or you
could just clear that div, which SHOULD do the same thing,
but I would not bet on it.
Okay it sullies the markup; but when a simple border hack
leads to needing a BMH, I draw the bord.. er, line.
Big John
=====
"What the world needs is a good bug ring"--Big John
<http://users.rraz.net/mc_on_the_rocks/testpage/pie.html>
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com