Kelly Miller wrote:
I figured I'd mention here that another way to solve that problem is by
adding a non-breaking space ( ) between <div> and </div>.
Gunlaug Sørtun wrote:
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.
Avoid using to fill elements whenever possible. Any "filler" that
has to be kept out of the way by CSS, will become visible in those cases
when the code has to deliver on its own -- without CSS. May not be of
much concern for most designers, but some of this "filler"-stuff is
actually "noise" in some browsers. A comment however, is just a silent
comment.
Another point is that the empty element isn't needed at all in that
page. It can be replaced by styling the elements above and below. I
didn't see removal and restyling as necessary as long as the element was
empty and did no real harm. We all use empty elements, one way or
another, for styling.
Maybe CSS3 will solve these minor problems -- in 10 years time or so...
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
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/