CSS Help Pile » Thread.

Commented Backslash MacIE5 CSS Hack

Apr. 28, 04 • Simple Tips & How To0 comments

A post at scriptygoddess.com reminded me of the commented backslash MacIE5 CSS hack. This hack picks up on the fact that MacIE incorrectly interprets the styles following a commented out section of CSS when a backslash is included in the comments.

The extra backslash in the comments, will essentially escape any styles that follow. To let MacIE back in on the action, simply create another commented section. You can see this hack used in a previous version of the arty|papers homepage (view css | view page).

In the scriptygoddess post, the import hack for MacIE was used add took care of that specific issue.

Search the CSS Help Pile

Categories