Discussion Locked

CSS Browser differences. Why doesn't Ne

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Why does this code run fine in IE but not in Netscape. In NS 4.7 and 6.0 the top box disappears. There is no logical reason I can see why it does this. What is the trick to get it to work correctly?



Untitled




NETSCAPE SUCKS!!!




This is stuff in the middle.



copyright Someone, MM


5 replies

by rcolev

Try repeating the following in your code:

#top {
border : thin inset Black;
background-color : Silver;}

Both Netscape 4.72 and IE 5 accepted the repetition, and the result seems to be OK. Why? I have no idea!

An interesting note: Netscape wouldn't load the reply page; all I got was the banner at the top. Had to use IE for this reply!

by mightyduk

Referring to the w3c spec for HTML 4.0( http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4 )

HTML comments have the following syntax:

Obviously IE ignores (or supports) the erroneous comment tags <-! ->. This caused NS to ignore the first style. If proper comment tags are used, it will work. NS follows the w3c specs quite closely.

BTW: if you had the life choked out of you by the big bully on the block, you'd suck.

This discussion is closed to new replies.