How To Center Raw Script in Page Builder

Hi There,

I’m trying to implement the OpenTable javascript onto my home page, and for the life of me I cannot get it to center align. I tried putting “text-align: center;” in the column styles. I tried to add some CSS and had no luck.

When the script is put in it just sits on the left. I’m also finding it’s not responsive in mobile…this may be the code opentable has given though.

Any insights on what I can do to center it would be awesome!

Thanks!
Tara

Hi Tara,

Thank you for writing in, try adding this to Theme Options > CSS

.ot-dtp-picker.wide {
	max-width: 806px !important;
	margin-left: auto;
	margin-right: auto;
}

But that might not work since that table is external widget, if that is the case please contact the OpenTable support on how you can apply that CSS to your table.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.