Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. /* This is an Example for a gallery-item in Elementor Custom CSS with Media Queries for different Elements */
  2.  
  3. /* Small devices (mobile/tablets, 767px and below) */
  4. @media only screen and (max-width: 766px) {
  5. selector .gallery-item img {
  6. object-fit: cover;
  7. height: 18.5em
  8. }
  9. }
  10.  
  11. /* Medium devices (tablets/desktops, 768px and up) */
  12. @media only screen and (min-width: 768px) {
  13. selector .gallery-item img {
  14. object-fit: cover;
  15. height: 6.35em;
  16. }
  17. }
  18.  
  19. /* Large devices (large laptops and desktops, 1168px and up) */
  20. @media only screen and (min-width: 1168px) {
  21. selector .gallery-item img {
  22. object-fit: cover;
  23. height: 11.35em;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement