Advertisement
imranmodel32

Custom Responsive media qureys

Mar 5th, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. /*custom responsive css fileS*/
  2.  
  3. /* Smartphones (portrait) ----------- */
  4. @media only screen
  5. and (max-width : 320px) {
  6. /* Styles */
  7.  
  8.  
  9. }
  10. /* Smartphones (portrait) ----------- */
  11. @media only screen
  12. and (max-width : 767px) {
  13. /* Styles */
  14.  
  15.  
  16. }
  17.  
  18. /* Wide Mobile Layout: 480px. */
  19.  
  20. @media only screen and (min-width: 480px) and (max-width: 767px) {
  21.  
  22.  
  23. }
  24.  
  25.  
  26. /* Tablet Layout: 768px.
  27. */
  28.  
  29. @media only screen and (min-width: 768px) and (max-width: 991px) {
  30.  
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. /* iPads (portrait and landscape) ----------- */
  48. @media only screen
  49. and (min-device-width : 768px)
  50. and (max-device-width : 1024px) {
  51. /* Styles */
  52. }
  53.  
  54. /* iPads (landscape) ----------- */
  55. @media only screen
  56. and (min-device-width : 768px)
  57. and (max-device-width : 1024px)
  58. and (orientation : landscape) {
  59. /* Styles */
  60. }
  61.  
  62. /* iPads (portrait) ----------- */
  63. @media only screen
  64. and (min-device-width : 768px)
  65. and (max-device-width : 1024px)
  66. and (orientation : portrait) {
  67. /* Styles */
  68. }
  69.  
  70. /* Desktops and laptops ----------- */
  71. @media only screen
  72. and (min-width : 1224px) {
  73. /* Styles */
  74. }
  75.  
  76. /* Large screens ----------- */
  77. @media only screen
  78. and (min-width : 1824px) {
  79. /* Styles */
  80. }
  81.  
  82. /* iPhone 4 ----------- */
  83. @media
  84. only screen and (-webkit-min-device-pixel-ratio : 1.5),
  85. only screen and (min-device-pixel-ratio : 1.5) {
  86. /* Styles */
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement