×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Srinivasan Pusuluri
Added: Jul 1, 2014 9:42 AM
Views: 38
Tags: no tags
ow to target iPad mini in CSS Media Queries
  1. /* ipad Mini Portrait */
  2. @media only screen and (width:768px) and (resolution: 163dpi) {
  3.  
  4. }
  5. /* ipad Mini Landscape */
  6. @media only screen and (width:1024px) and (resolution: 163dpi) {
  7.  
  8. }
  9.  
  10. /* All iPads Portrait & iPad Mini Landscape */
  11. @media only screen and ((width:768px) and (resolution:132dpi or resolution:263px) or ((width:1024px) and (resolution: 163dpi)) {
  12.  
  13. }
  14.  
  15. /* Only iPad 1 & 2 Portrait & iPad Mini Landscape */
  16. @media only screen and ((width:768px) and (resolution:132dpi) or ((width:1024px) and (resolution: 163dpi)) {
  17.  
  18. }
  19.