Veerle schreef:[color=blue]
> Chris, thanks a lot for your helpful response!
>
>[color=green]
>>Works on Netscape 7.1 and (sort of) IE 6. The latter puts a thin
>>vertical bar down the center of the screen. This may be the '3 pixel'
>>problem I've read about (and which you can search for).[/color]
>
>
> I tried it in IE6 and Firefox. In Firefox, it looks perfect. In IE
> there is a small white gap in the middle, as you said.
>
> Key: You must specify an explicit height for the topmost element. For
> IE, this seems to be the <body> element; for Netscape it seems to be
> the
> <html> element, so I've specified it on both.
>
> The specification for the height on the <html> element (for Netscape as
> well as Firefox) is a trick I would not have been able to come up with
> myself...
>
> After trying some things again, I found a solution that hasn't got the
> small white gap in the middle. It involves making two
> divs that act like columns and create the 2 rows in it. See
>
http://home.scarlet.be/~vv991306/test2.html
> But this creates another problem: when resizing the IE window, the 2
> blocks on the right sometimes appear under the blocks on the left :-(
>
> Another thing is: when the width of the content of one of the blocks is
> greater than 50% of the browser window, then the blocks appear under
> one another whatsoever. I would prefer not to have that behaviour, but
> rather to have horizontal scrollbars show up. This is the case for IE
> and Firefox...
>
> This is such a mess to get it right... I would like so much to this
> "the right way" and not use a table, but using a table gives me all the
> behaviour I want and it works in IE en Mozilla without problems:
>
http://home.scarlet.be/~vv991306/test3.html
> The big disadvantage is not only the fact that I use a table for the
> soul purpose of layout, but also I have to leave out the dtd
> declaration in my doctype because otherwise the table solution doesn't
> work as well (in IE and in Firefox).
>
> Veerle
>[/color]
There you got the Achilles' heel of CSS. It really is a shame that 'simple' things like this just don't seem
to work in CSS, or am I still thinking tables to much?
--
Niek