CSS hack

http://paulirish.com/2009/browser-specific-css-hacks/

http://htmlcsstutorials.blogspot.com.au/2009/06/web-browser-hacks-css-hacks-ie-firefox.html

* html .logo{margin-left:10px;} for ie6
* + html .logo{margin-left:20px;} for ie7

@media all and (min-width:0px) {head~body .logo {margin-left:10px;}} for opera

body:nth-of-type(1) .logo{margin:20px;}  for Chrome

@media screen and (-webkit-min-device-pixel-ratio:0) {
 #diez  { color: red  }
} for Chrome

body:first-of-type .logo{margin-top:10px;}  for safari

Advertisements

About ronjey

Web Developer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Ronjey’s Tweets

Ronjey’s Blog Categories

%d bloggers like this: