Left <p> element and center <p> same line Fullscreen slider
-
hello !
I would like to add a caption under each of my image.
The idea is that i have a <p> element at the left and another one <p> element on the same line and centered like this——————————IMAGE———————————
1/2 ——————— —Title ————————————How can i do ? because when i add a "text-align center" on one <p> element of my caption it simple not work. Stay on the left.
-
Hey!
Please enter this css in "lay options" -> "custom css & html"
.center-caption{ position: absolute; left: 0; top: 0; width: 100%; text-align: center; } .caption{ position: relative; }
When you edit your caption you can click the "<>" button to open the code editor.
Then enter this html:<p>left <span class="center-caption">center</span></p>
this is what it looks like on the frontend:
i know that this is kind of a lot of work for something simple and i'm gonna write it down and see if i can solve this in a more elegant way one day.
-
@arminunruh said:
<p>left <span class="center-caption">center</span></p>
Hi Armin ! All good it works ! Thanks for your answer :)
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache.
Now see if your problem solved itself.
Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it
I don't answer or check forum DMs, please just post on the forum.