Media Targeting With CSS Using @Media


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

Consolidate all your various stylesheets into one and cut down on requests to your server by placing your screen, print & handheld stylesheets into one stylesheet


Copy this code and paste it in your HTML
  1. @media print {
  2.  
  3. .class
  4. {
  5. }
  6.  
  7. }
  8.  
  9. @media handheld {
  10.  
  11. .class
  12. {
  13. }
  14.  
  15. }
  16.  
  17. @media aural {
  18.  
  19. .class
  20. {
  21. }
  22.  
  23. }

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=8

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.