Such conditional comments hide the contents from all browsers except specific IE versions.
Now I needed to hide something from IE6 and lower, but show it to *all other browsers* and found this clever snippet...
<!--[if gte IE 7]><!--> This is seen by all real browsers and IE 7+. <!--<![endif]-->
Seems to do the trick perfectly and validates as HTML 4.01 Transitional, XHTML 1.0 Transitional and possibly other doctypes.
Cheers Martin
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/GoLive/Browse/ Manage your subscription: http://www.ListSearch.com/GoLive/
Feb 07
Jim Long Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 08:04
Jim Long
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
Terri Chicko Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 08:10
Terri Chicko
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
Miles A Cruickshank Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 08:48
Miles A Cruickshank
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
Terri Chicko Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 08:57
Terri Chicko
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
Miles A Cruickshank Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 09:01
Miles A Cruickshank
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
Martin Sammtleben Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 11:26
Martin Sammtleben
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
hart Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 12:54
hart
Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07
Doug Fairchild Re: Clever way to hide stuff *only* from IE6 and lower
Feb 07, 2009; 12:58
Doug Fairchild
Re: Clever way to hide stuff *only* from IE6 and lower
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!