Advertisement
salmancreation

CSS Media Queries for the Divi Theme

Apr 28th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.05 KB | None | 0 0
  1. If we’re looking to make changes to Divi using our own CSS, it can be useful to know the exact media queries Divi uses so that our styles are applied to the correct Divi layout. Here are the media queries Divi uses.
  2. /* Large screens (1405px upwards) */
  3. @media only screen and ( min-width: 1405px ) {
  4.     /* your css goes here */
  5. }
  6.  
  7. /* Laptops and desktops (1100-1405px) */
  8. @media only screen and ( min-width: 1100px ) and ( max-width: 1405px) {
  9.     /* your css goes here */
  10. }
  11.  
  12. /* Tablets in landscape mode (981-1100px) */
  13. @media only screen and ( min-width: 981px ) and ( max-width: 1100px ) {
  14.     /* your css goes here */
  15. }
  16.  
  17. /* Tablets in portrait mode (768-980px) */
  18. @media only screen and ( min-width: 768px ) and ( max-width: 980px ) {
  19.     /* your css goes here */
  20. }
  21.  
  22. /* Smartphones in landscape mode (480-768px) */
  23. @media only screen and ( min-width: 480px ) and ( max-width: 767px ) {
  24.     /* your css goes here */
  25. }
  26.  
  27. /* Smartphones in portrait mode (0-479px) */
  28. @media only screen and ( max-width: 479px ) {
  29.     /* your css goes here */
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement