Targeting different browsers


/ Published in: CSS
Save to your folder(s)

Methods to target different browsers in CSS.


Copy this code and paste it in your HTML
  1. /* working as of Jan 7, 2010 */
  2. @-moz-document url-prefix() {table.week {margin:0 0 10px 0;}} /* target just firefox */
  3. table.week {height:50px;*height:30px;} /* *height targeted @ IE */
  4. @media screen and (-webkit-min-device-pixel-ratio:0){table.week {height:30px;}} /* target safari and gchrome */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.