Forked from gbechtold/Elementor Custom CSS with Media Queries for different Elements
Created
October 24, 2024 15:53
-
-
Save mariliacamara/1372505b7435a27c8fc33eebd6846929 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is an Example for a gallery-item in Elementor Custom CSS with Media Queries for different Elements */ | |
/* Small devices (mobile/tablets, 767px and below) */ | |
@media only screen and (max-width: 766px) { | |
selector .gallery-item img { | |
object-fit: cover; | |
height: 18.5em | |
} | |
} | |
/* Medium devices (tablets/desktops, 768px and up) */ | |
@media only screen and (min-width: 768px) { | |
selector .gallery-item img { | |
object-fit: cover; | |
height: 6.35em; | |
} | |
} | |
/* Large devices (large laptops and desktops, 1168px and up) */ | |
@media only screen and (min-width: 1168px) { | |
selector .gallery-item img { | |
object-fit: cover; | |
height: 11.35em; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment