Advertisement
firoze

specific-browser.css with placeholder support IE

Jan 3rd, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.68 KB | None | 0 0
  1. /*
  2. Firefox
  3. */
  4.  
  5. @-moz-document url-prefix() {      
  6.  
  7. .right_content{width:760px;float:left;text-align:left;display:inline;}
  8.  
  9. :-moz-placeholder { color: rgba(255,0,0,0.4) !important; }
  10.  
  11. /*start to write your specific browser css here*/
  12.  
  13. }
  14.  
  15. /*
  16. Chrome + Safari + Opera
  17. */
  18.  
  19. @media screen and (-webkit-min-device-pixel-ratio:0) {
  20.  
  21. .right_content{width:760px;float:left;text-align:left;display:inline;}
  22.  
  23. ::-webkit-input-placeholder { color: rgba(900,0,0,0.900) !important; }
  24. /*start to write your specific browser css here*/
  25.  
  26. }
  27.  
  28. /*
  29. Internet Explorer 10
  30. */
  31. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  32.  
  33. .right_content{width:760px;float:left;text-align:left;display:inline;}
  34. input:-ms-input-placeholder{color: rgba(255,0,0,0.75);}
  35. /*start to write your specific browser css here*/
  36.  
  37. }
  38.  
  39.  
  40. /*textarea color not support for IE ALL*/
  41. /*
  42. Internet Explorer 9-10
  43. */
  44. @media screen and (min-width:0\0) {
  45.  
  46. .right_content{width:760px;float:left;text-align:left;display:inline;}
  47.  
  48.  
  49.  
  50.  
  51. }
  52. /*
  53. Internet Explorer 8
  54. */
  55. @media \0screen\,screen\9 {
  56.  
  57. .right_content{width:760px;float:left;text-align:left;display:inline;}
  58.  
  59. /*placeholder color not support*/
  60.  
  61. }
  62.  
  63. /*
  64. Internet Explorer 7
  65. */
  66. @media screen\9 {
  67.  
  68. .right_content{width:760px;float:left;text-align:left;display:inline;}
  69.  
  70. /*placeholder color not support*/
  71.  
  72. }
  73.  
  74.  
  75. /*
  76. ONLY FOR OPERA
  77. */
  78. @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
  79.  
  80.     #my-id { clear:right; }
  81.  
  82. }
  83.  
  84. /*
  85. only for safari
  86. */
  87. @media screen and (-webkit-min-device-pixel-ratio:0) {
  88.  
  89.     #my-id { height: 100%; }
  90.  
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement