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.
Commenting is not available in this weblog entry.Related articles
- Microsoft forces backward step in email design
- Making RSS pretty using XSL and CSS
- Removing padding from IE buttons
- HTML Star Hack
- Using CSS to produce an image gallery
- CSS Hacks
Most recent articles
- DataGrab launches
- DataGrab: an introduction
- DataGrab for EE2.0
- EE2.0 progress report
- Testers required for new Quiz module