rss
twitter
  •  

Single line browser css hacks

| Posted in CSS |

4

CSS hacks as quite handy but it will work and save our time. But mostly I will prefer not to use hacks.

.example{
margin:0; /* This will work on all the browsers. FF3 */
_margin:0; /* This will work only on IE6 */
.margin:0; /* This will work only on IE7 */
}

Browser CSS Hacks

* IE 6 and below

* html {}

* IE 7 and Safari below

*:first-child+html {}

* IE 7 only

*:first-child+html {}

* IE 7 and modern browsers only

html>body {}

* Modern browsers only (not IE 7)

html>/**/body {}

* Recent Opera versions 9 and below

html:first-child {}

Comments (4)

Hi, Congratulations to the site owner for this marvelous work you’ve done. It has lots of useful and interesting data.

Thanks for the useful info. It’s so interesting

I congratulate, a brilliant idea

This is great. I love it. Hope i could solves some of previous css crash in certain browser

Post a comment