Friday, September 26, 2014

Apply a stylesheet style only at the iPad!

This is inspired by this:

#foo {
   display: block;
   margin: 0;
}
@media screen and (min-device-width: 481px) and (max-device-width: 1024px) and
      (orientation: portrait) {
   
/* iPad Portrait */
   #foo {
      font-size: 2.5em;
      padding: 15px;
   }
}
@media screen and (min-device-width: 481px) and (max-device-width: 1024px) and
      (orientation: landscape) {
   
/* iPad Landscape */
   #foo {
      font-size: 2.5em;
      padding: 15px;
   }
}

No comments:

Post a Comment