help with responsive css
-
Hey Everyone!
I’m trying to make my header images all respond similarly across all my pages. The home page works great, as the settings are there in the pinnacle options. But, because I want to change the image for each page I’m using CSS.
This is my Website. talesbyfirelight.com
this what I’m doing in CSS the non-home pages of my website.
——-
/* Spooky Tales */
.spooky-tales .titleclass {
background-position: center center;
background-image: url(http://talesbyfirelight.com/wp-content/uploads/2016/11/SpookyTales_bannerImage_v02.jpg);
background-size: cover !important;
padding-bottom: 200px;
background-color: black;
}@media (max-width: 768px) {
.spooky-tales .titleclass {
padding-top: 80px !important;
padding-bottom: 0px !important;
}
}@media (max-width: 768px) {
.spooky-tales .kad-page-title.entry-title{
padding-top: 125px !important;
padding-bottom: 0px !important;
}
}——
Seems sort of painful. And when I copy the css for the other pages they are all a little off.
Question. Is there a way to combine my @media css so I don’t have to do it twice? Or in my case 6 times. I’m nudging around the padding for the image and the text.
I come from a VFX background working on feature films and they are really picky with everything.
I’m sure you pro’s out there know of a better way to do this.
Thanks again for the help. This Forum is great!
Clint
The topic ‘help with responsive css’ is closed to new replies.
