Forums / Setup & design / Center tables in Online Editor?
Brian Henkel
Thursday 05 June 2008 12:03:24 pm
Hoping this is an easy question for a skilled eZ Publisher: How do you center a table created in the Online Editor?
See attached screenshot: http://bhenkel.echoechoplus.com/centertable.jpg
Thanks.
Sander van den Akker
Friday 06 June 2008 7:43:02 am
You can create a new table class in content.ini:
[table] availableClasses[]=newstyle
Then, add a corresponding style to one of your stylesheets:
table.newstyle { margin: 0 auto; }
Finally, select the newly added style form the dropdown menu when creating a new table. Don't forget to clear your caches!
eZ Publish certified developer http://auth.ez.no/certification/verify/392313