Solved

How can I center a table on a standard page?

MWRT
Visitor
3 0 0

Hi,

 

Does anyone know how to centre a table on a standard page? I'd also like the columns to be smaller but this isn't as important (I dragged the columns to become smaller when creating the table but on the actual page they are still very wide).

 

Currently the tables are across to the right of the page (even though I centred them when editing the page)

 

Screenshot 2024-04-29 at 09.12.10.png

Accepted Solution (1)

Anshul_arora
Navigator
382 110 77

This is an accepted solution.

Hello @MWRT ,

I understand you are looking to adjust the display of the Size table.

You can adjust it by using the following CSS code.

Please add the below-mentioned CSS code at the bottom of the theme.liquid file before </body> tag and save.

<style>

table {
width: auto !important;
}

</style>

=> https://prnt.sc/SWWSORvutVqa

I hope it helps.

Please share if you have any queries.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here

View solution in original post

Replies 4 (4)

LuffyOnePiece
Shopify Partner
521 78 96

Hi @MWRT ,

 

Can you please send me a preview URL of the store so that I can assist you on ?

 

Thank you

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
MWRT
Visitor
3 0 0

Hi,

 

My website is live - www.montywests.co.uk

 

thank you

Anshul_arora
Navigator
382 110 77

This is an accepted solution.

Hello @MWRT ,

I understand you are looking to adjust the display of the Size table.

You can adjust it by using the following CSS code.

Please add the below-mentioned CSS code at the bottom of the theme.liquid file before </body> tag and save.

<style>

table {
width: auto !important;
}

</style>

=> https://prnt.sc/SWWSORvutVqa

I hope it helps.

Please share if you have any queries.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here
MWRT
Visitor
3 0 0

hi,

 

this is great, thank you so much!