Centre Align Custom liquid in Crave Theme

I have added a custom liquid section to my footer (in Crave theme), how can I centre the text? Image below.

@Jode81 , hope you are doing well.

Please try by adding below CSS at the end of your base.css or theme.css file. you have to add your parent div class and use text-align:center property. please check example as below

.parent-clss{
text-align:center;
}

Hi Jode81,
You just need to wrap your text with a div and center align this div content with CSS.

 Your Text here 

And then open your style.css or theme.css files according to your theme and put this CSS there at the end of the file.

.custom_html{
text-align:center;
}

or you can even apply inline css


Your html here

Thankyou for your help, I have entered the code in the base.css file but not that familiar with code. It didn’t work, have I put it in the wrong place?

Thankyou for your reply, I am not sure exactly where I need to put this code. I have included a screenshot below of where I created the custom liquid file. I added a section in “Customise” not in "edit code’'. Are you able to explain where I add these 2 codes - I am using Crave theme?

Share your store URL and also let me know which text you want to keep it center. So, I’ll provide you the CSS.

My store url is: https://www.onestopcelebrations.com/

Below is a screenshot of the text I want to align, you will see it in the footer of my site.

Thank you :slightly_smiling_face:

Jode81_0-1688365419333.png

Hey Jode81, You are almost there.
Just need to wrap the text with

 custom text 

And add this style at the end of the block labeled as a custom style

.custom_txt{
text-align: center;
}

please add the below line of CSS code at the end of your base.css file.

.section-sections--16180273119408__b031a82f-0a99-4d1b-ad21-7eb5f2f4daba-padding{
text-align: center;
}

Thankyou so much for your help - this worked!

Thankyou - this solution also worked!