Tuesday, June 30, 2009

New way to style for IE 6

Just discover that we can specify style for ie 6 using: _myclass syntax.
For all modern browsers, it will think that this is incorrect syntax and will ignore it entirly; However, for old browser, such as IE 6, it intelligently think this is a typo, and assume it to be myclass.
More Info in: Underscore hack for CSS and IE


Other way to style IE 6 is through conditional commenting or using syntax like myclass[class] which only regonize by modern browser.

No comments: