Showing 1 – 2 of 2 replies
ryanjhale123

Slider text centering doesn't work for shorter text

ryanjhale123 PURCHASED
11 months ago
I have had trouble with centering the text in the slider for shorter titles. For example, I have a post with the title "Hello, world!" It does not center on the page with the slider. To show you what happens, I created a short video where I change the sample title "Smoothly rolling out pricing changes is hard." to "Smoothly rolling." You will see that the text no longer centers on the page. Can you please provide the change to the CSS to fix this problem?

Here is the video to show the example:

https://vimeo.com/828714585/9e8557afa6
ryanjhale123
ryanjhale123 PURCHASED
11 months ago
I didn't receive a reply, so I did some research on my own. To fix the problem given that it was a flex div container, I added

justify-content: center !important;

to the .align-items-center class

by following the solution on this page

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container

Last edited 11 months ago

Creative DM
Creative DM SELLER
11 months ago
Hi ryanjhale123,
Apologies for late reply, I was on vacation!
Yes justify-content: center !important; is a perfect solution!

Feel free to ask if you have any questions, You will get the reply in no time from now.
also, I resume the next update which have amazing things like working php contact form, new tabs styles and much more...

Stay Tuned!

Best Regards!
Rakesh