Center tables in Online Editor?

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:34:12
Script start
Timing: Jan 18 2025 19:34:12
Module start 'layout'
Timing: Jan 18 2025 19:34:12
Module start 'content'
Timing: Jan 18 2025 19:34:13
Module end 'content'
Timing: Jan 18 2025 19:34:13
Script end

Main resources:

Total runtime0.8474 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00520.0030 740.539139.4609
Module start 'content' 0.00820.8373 780.0000524.8828
Module end 'content' 0.84550.0018 1,304.88288.1641
Script end 0.8473  1,313.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4060160.0002
Check MTime0.00140.1639160.0001
Mysql Total
Database connection0.00060.076410.0006
Mysqli_queries0.804194.8892540.0149
Looping result0.00060.0665520.0000
Template Total0.819796.720.4098
Template load0.00220.259520.0011
Template processing0.817496.469220.4087
Template load and register function0.00020.024710.0002
states
state_id_array0.00090.105310.0009
state_identifier_array0.00160.191620.0008
Override
Cache load0.00180.2132140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.109420.0005
Fetch class attribute name0.00160.191330.0005
XML
Image XML parsing0.00060.075920.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0996170.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs