I added a table via a custom liquid section on my site and I cannot get the table to center. I have tried adding various things to the theme.liquid file that I find while googling, but I think those answers were customized to the person asking the question, and they did not work for me. Could someone please take a look at my page at https://shop.littledogtech.com/pages/what-does-grading-mean and let me know how I can center that table?
I’m not sure what you mean. I built the site myself using the standard template. That particular table was made using a HTML table builder I found online. I think the table code is fine, but I just can’t figure out how to get it centered in the Shopify page.
Hi @LittleDogTech ,
You can follow the steps here:
Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there
Here is the code for step 3:
.section-template--23061550104823__custom_liquid_cf6EwD-padding > .tg {
margin-inline: auto !important;
}
Here is the result:
Please let me know if it works!
Best,
Daisy
That worked! Thanks!