Advertisement
sayful

CSS Conditional for browser

Jan 28th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.66 KB | None | 0 0
  1. /* You can target WebKit based browsers(Chrome + Safari + Opera) using this in your CSS */
  2. @media screen and (-webkit-min-device-pixel-ratio:0) {
  3.  
  4. Body {}
  5.  
  6. }
  7.  
  8. /* You can target Firefox using this in your CSS */
  9. @-moz-document url-prefix() {      
  10.  
  11. .right_content{}
  12.  
  13. }
  14.  
  15. /* Internet Explorer 10 */
  16. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  17.  
  18. .right_content{}
  19.  
  20. }
  21.  
  22.  
  23. /* Internet Explorer 9 & 10 */
  24. @media screen and (min-width:0\0) {
  25.  
  26. .right_content{ }
  27.  
  28. }
  29.  
  30.  
  31.  
  32. /* Internet Explorer 8 */
  33. @media \0screen\,screen\9 {
  34.  
  35. .right_content{}
  36.  
  37. }
  38.  
  39.  
  40.  
  41. /* Internet Explorer 7 */
  42. @media screen\9 {
  43.  
  44. .right_content{}
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement