I figured I'd mention here that another way to solve that problem is by adding a non-breaking space (&nbsp;) between <div> and </div>. However, if you do this, you have to watch for IE's auto-expansion behavior (the div will automatically become as tall as the line-height in IE). To dodge this, simply set overflow to hidden (this turns off the auto-expansion behavior; well, in this example, anyway).

Gunlaug Sørtun wrote:

Quick fix first:

Change this code:
<div id="content-top"></div>
...to this:
<div id="content-top"><!-- --></div>
...since IE/win may get a bit lost when elements are empty. It's still
empty, but IE/win doesn't know that...



-- http://www.mozilla.org/products/firefox/ - Get Firefox! http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to