How do I center tables on a page, especially price boxes. For example, suppose I have 3 price boxes. If I simply create them with Avia, the 3 boxes will stretch across entire screen. I would like to keep the set narrower and centered on page. I have tried using column layouts — for example 1/5,3/5,1/5 and building the table in the 3/5 section but I cannot get the sections in the correct order
Hi compudean!
Did you add the table inside a 1/1 layout element? If not then please try that. If you did then please provide us with a temporary admin login so that we can take a closer look. You can post the details here as a private reply.
Regards,
Rikard
Hi!
You can set a custom class to the table element and use some CSS to set a max-width and center it:
.custom_centered_table{
max-width: 400px;
margin: 0 auto;
}
Regards,
Josue
Its not quite working out. The total width narrows but the set of tables are flush left. I tried some other stuff but could not get it to work.
Hey!
Use this code:
.ssl-custom_centered_table{
max-width: 400px;
margin: 0 auto !important;
}
Best regards,
Josue
That worked. thanks! (i thought I replied a while ago)
You are welcome, always glad to help :)
Regards,
Josue