You are here

media.css in Picture 7

/* Used with Media - Testing css media queries in Javascript. Authors & copyright (c) 2012: WebLinc, David Knight, Zac Owen. */
/* NOTE: This file is used to determine media query support and get media type. Include this with your base style sheet or link to this external file. */
/*
    z-index : Access Media _typeList array as index.
    width   : Used to retrieve dpi for non-IE broswers. IE supports screen.DPIX.
    height  : Used to test media query support. IE <9 handle media type but not query expression.
*/
head                { position: relative; z-index: 0; width: 1in; height: 0px; }
@media screen       { head { z-index: 1; } }
@media print        { head { z-index: 2; } }
@media speech       { head { z-index: 3; } }
@media projection   { head { z-index: 4; } }
@media handheld     { head { z-index: 5; } }
@media tv           { head { z-index: 6; } }
@media braille      { head { z-index: 7; } }
@media embossed     { head { z-index: 8; } }
@media tty          { head { z-index: 9; } }
/*
    Test media query support.
*/
@media screen and (height) { head { height: 1px; } }

File

weblinc/media.css
View source
  1. /* Used with Media - Testing css media queries in Javascript. Authors & copyright (c) 2012: WebLinc, David Knight, Zac Owen. */
  2. /* NOTE: This file is used to determine media query support and get media type. Include this with your base style sheet or link to this external file. */
  3. /*
  4. z-index : Access Media _typeList array as index.
  5. width : Used to retrieve dpi for non-IE broswers. IE supports screen.DPIX.
  6. height : Used to test media query support. IE <9 handle media type but not query expression.
  7. */
  8. head { position: relative; z-index: 0; width: 1in; height: 0px; }
  9. @media screen { head { z-index: 1; } }
  10. @media print { head { z-index: 2; } }
  11. @media speech { head { z-index: 3; } }
  12. @media projection { head { z-index: 4; } }
  13. @media handheld { head { z-index: 5; } }
  14. @media tv { head { z-index: 6; } }
  15. @media braille { head { z-index: 7; } }
  16. @media embossed { head { z-index: 8; } }
  17. @media tty { head { z-index: 9; } }
  18. /*
  19. Test media query support.
  20. */
  21. @media screen and (height) { head { height: 1px; } }