Using CSS Media Queries (Chrome / Safari)
@media not all and (-webkit-min-device-pixel-ratio:0) { #example { width: 200px; } }
Special css file for Chrome / Safari (Chrome / Safari)
<link rel="stylesheet" href="style-sheet_chrome.css" type="text/chrome/safari" />
Here is a list of CSS Hacks
* html #uno { color: red } *:first-child+html #dos { color: red } html>body #tres { color: red } html>body #cuatro { color: red } html:first-child #cinco { color: red } html[xmlns*=""] body:last-child #seis { color: red } body:nth-of-type(1) #siete { color: red } body:first-of-type #ocho { color: red } @media screen and (-webkit-min-device-pixel-ratio:0) { #diez { color: red } } @media screen and (max-device-width: 480px) { #veintiseis { color: red } } html[xmlns*=""]:root #trece { color: red } *|html[xmlns*=""] #catorce { color: red } :root *> #quince { color: red } *+html #dieciocho { color: red } #veinticuatro, x:-moz-any-link { color: red } #veinticinco, x:-moz-any-link, x:default { color: red } #once { _color: blue } #doce { *color: blue; } #diecisiete { color: blue } #diecinueve { color: blue\9; } #veinte { color: blue\9; } #veintesiete { color: blue !ie; }
source share