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.
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
- Client Downloads module released
- Introducing the Followers module - Part 2
- Introducing the Followers module - Part 1
- Selected items and ExpressionEngine 1.6.5
- Online payments now accepted