Created
January 1, 2016 17:26
-
-
Save SimonPadbury/de581076819106968134 to your computer and use it in GitHub Desktop.
WordPress: Using featured images (thumbnails) as hero backgrounds (2 of 2).
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
.hero-background-image[style] { | |
height: 340px !important; | |
background-color: #888 !important; | |
background-size: auto 340px !important; | |
@media (min-width: 768px) { | |
height: 440px !important; | |
background-size: auto 440px !important; | |
} | |
@media (min-width: 1024px) { | |
height: 500px !important; | |
background-size: auto 500px !important; | |
} | |
@media (min-width: 1200px) { | |
height: 600px !important; | |
background-size: auto 600px !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment