Posted By

johnloy on 02/09/09


css textmate mobile

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


antiscreen css technique for styling pages for mobile devices

 / Published in: Other

  1. @import url("screen.css");
  2. @import url("antiscreen.css") handheld;
  3. @import url("antiscreen.css") only screen and (max-device-width:480px);
  5. define a style sheet handheld.css with additional styling for mobile browsers, andlink them in the document as follows:
  7. <link rel="stylesheet" href="core.css" media="screen"/>
  8. <link rel="stylesheet" href="handheld.css" media="handheld, only screen and (max-device-width:480px)"/>

Report this snippet  

You need to login to post a comment.