Tagged: center, LayerSlider
-
AuthorPosts
-
September 24, 2019 at 9:58 am #1141305
Hey there. I tried within layer slider and out with css, and i cant get text centered after a force a min size on it. So right now i have removed any custom css, only min.mobile font size on layerslider is set to 20px. Size works, but it doesnt stay centered at 800px or less (approx).
Its like there is padding on the left of the text, look at the screenshot
How can i force the text to center always no matter what size? I will adjust the size so it fits so not concerned with wrapping etc. Thank youSeptember 25, 2019 at 12:32 pm #1141780Hey andyux,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) { .ls-wrapper.ls-in-out[data-slide-index="1"] h3.ls-layer { width: 100vw !important; text-align: center !important; font-size: 18px !important; } div[data-slide-index="1"] { left: 0 !important; } }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 25, 2019 at 6:47 pm #1141926September 26, 2019 at 3:40 pm #1142310Hi andyux,
Well, the Layer Slider is hard to adjust like this. Can you give a class or an id to the image layer or to the image?
Best regards,
VictoriaSeptember 26, 2019 at 3:51 pm #1142319September 29, 2019 at 7:47 pm #1143123Hi andyux,
Thank you. Try adding this code:
@media only screen and (max-width: 767px) { .centerimage.ls-layer { margin-left: 33vw !important; } }
Best regards,
VictoriaSeptember 30, 2019 at 9:21 am #1143248you are wonderful! thank you.
September 30, 2019 at 11:49 am #1143320Hi andyux,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.