Different Slider heights in different pages
-
Well I have kinda done it with this coding but just wondering if I need to set the height for other media too
/* Adjust the Slider Height */
#customizr-slider.carousel .item {
height: 300px;
min-height: 300px;
line-height: 300px;
}
@media (max-width: 1200px){
#customizr-slider.carousel .item {
height: 231px;
min-height: 231px;
line-height: 231px;
}
}
@media (max-width: 979px){
#customizr-slider.carousel .item {
height: 186px;
min-height: 186px;
line-height: 186px;
}
}
@media (max-width: 767px){
#customizr-slider.carousel .item {
height: 185px;
min-height: 185px;
line-height: 185px;
}
}@media (max-width: 480px){
#customizr-slider.carousel .item {
height: 114px;
min-height: 114px;
line-height: 114px;
}
}@media (max-width: 320px){
#customizr-slider.carousel .item {
height: 84px;
min-height: 84px;
line-height: 84px;
}
}/* Adjust HOME page Slider Height */
.page-id-246 #customizr-slider.carousel .item {
height: 500px;
min-height: 500px;
line-height: 500px;
}.page-id-323 #customizr-slider.carousel .item {
height: 500px;
min-height: 500px;
line-height: 500px;
}Well I want the Home pages (2 pages in different languages) to remain the default height and the other pages to 300px.
The above coding does the trick but I want to ask is there anyway to combine the settings for page 246 and 323 into one entry.
Second question is do I need to set @media ones for the HOME page also?
- The topic ‘Different Slider heights in different pages’ is closed to new replies.