Tagged: LayerSlider
Hi,
in my current project https://www.bhe-architektur.at/architektur-am-attersee/ I am finetuning all the LayerSliders for different screen sizes. As you know LayerSlider enables different styles for Desktop, Tablet and Mobile and everything works fine for me except of Mobile/LANDSCAPE view. Can I define different styles for this size and view within LayerSlider or do I have to do so by using CSS / media queries?
I have already tried it with CSS by assigning a class to a text layer. In that way I can modify some design properties of the layer (like drawing a border around it) but NOT the vertical position of the layer:
.textLayer {
margin-top: 20px !important;
/* or */
transform: translateY(20px) !important;
}
How can I achieve that?
Best regards,
Stefan
No ideas anyone?
I just would like to reposition some layerslider texts in mobile landscape view by using CSS/media queries.
Thanks in advance,
Stefan
Hi,
Try going to the layerslider, select the layer, go to “advanced” in the sidebar and add the custom css in a media query:
For Mobile/LANDSCAPE view try this media query and adjust to your device.
@media only screen and (max-width: 860px) and (orientation: landscape) {
/* your css */
}
Best regards,
Mike