Forum Moderators: not2easy
...using floats and display:none can cause really odd IE bugs that could potentially destroy a page layout. So I was wondering, is there any alternative to display:none, perhaps using some sort of width/overflow combination, that works reliably, cross-browser, to hide page elements even if they have content in them?
Of particular interest in the article:
Update! July 5, 2004 — It turns out that this duplicating characters bug can be triggered by other things than just HTML comments. Phil Baines points out that any elements given the style {display: none} will also induce the bug. Other than that, the same conditions apply. Since HTML comments remove content from a page just like {display: none}, does this mean that IE is using the same buggy mechanism for both?
This should be a good one for all of us to puzzle and stew over for awhile; so far I haven't come up with a solution that works. Should be an interesting study though!
Thanks,
Matthew