Skip to content

Instantly share code, notes, and snippets.

@judearasu
Created April 13, 2011 03:53
Show Gist options
  • Save judearasu/916933 to your computer and use it in GitHub Desktop.
Save judearasu/916933 to your computer and use it in GitHub Desktop.
Chrome
<html>
<head>
<style type="text/css">
@media screen and (-webkit-min-device-pixel-ratio:0) {
.myClass { background-color: #FF0000; }
#myId{color:#444}
body:nth-of-type(1) .chrome{border:1px solid red}
}
</style>
</head>
<body>
<p class="myClass">My name is john</p>
<p id="myId">I am a ruby developer</p>
<div class="chrome">
Css hacks for chrome
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment