Page is a not externally linkable
- WebmasterWorld
-- New To Web Development
---- Upgrade Browser Statement?


londrum - 9:05 pm on May 24, 2007 (gmt 0)


you can use IE's conditional statements for people using early versions of Internet Explorer.


<!--[if lte IE 5]>
<p>Upgrade your browser!</p>
<![endif]-->

that basically says that any browser prior to IE5 will print out the paragraph, but all other browsers will regard it as a comment.

the other way that people normally do it is to write something like this

<p class="hide">Upgrade your browser!</p>

and put
.hide{display:none}
in a stylesheet.

but instead of linking to the stylesheet in the head, they will import it instead, using @import
early browsers don't recognise import, so they will not know to hide the paragraph.


Thread source:: http://www.webmasterworld.com/new_web_development/3349090.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com