brandnewbox.co.uk

Home of Andrew Weaver, a uk-based web developer specialised in building high-quality websites

Commented Backslash MacIE5 CSS Hack

Tuesday, January 13th, 2004

Andrew Weaver

Category:

Original source: Sam-I-am.com

#isnotMacIE5 { display: none;  }
#isMacIE5 { display: block; background-color: #060; color: #fff; }

/* commented backslash hack v2 */
#isnotMacIE5 { display: block; background-color: #060; color: #fff; }
#isMacIE5 { display: none; }
/* end hack */

The use of the */ at the end of the first comment line stop IE5 on the Mac realising the comment has ended and so ignores all declarations until a subsequent comment is reached.

Comments

There are no comments yet.

Add a comment

 
Remember my personal information
 
Notify me of follow-up comments?
 

© brandnewbox.co.uk 2004-2008