Problem with table layout

Author Message

Nicolò Zanetti

Wednesday 02 July 2008 8:31:11 am

Hi, I want to create a table with spaced <td>, and for firefox it's ok, but ie give the priority to the html code in this case instead the css ignoring "border-spacing: 4px !important; border-collapse: separate !important;", ezpublish creates the table like this:
<i>

<table class="tableclassname"  cellpadding="2" cellspacing="0"  width="100%">

</i>
I must delete from the table the "cellspacing="0"" else IE will not separated the <td>, I even tried to use the !important on css but with negative results.
Can you help me?
Thanks

Stéphane Bullier

Wednesday 02 July 2008 9:46:04 am

Hi,

I can try to override the <table> template : standard/content/datatype/view/ezxmltags/table.tpl
and delete cellspacing="0".

You have to place this template into your design folder at the same place like above.

Stéphane

Nicolò Zanetti

Thursday 03 July 2008 1:25:02 am

Thank you Stéphane, it worked fine.
Even if still the layout is not as good as with firefox, but i have to complait at microsoft with this. :)

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 31 2025 03:30:54
Script start
Timing: Jan 31 2025 03:30:54
Module start 'layout'
Timing: Jan 31 2025 03:30:54
Module start 'content'
Timing: Jan 31 2025 03:30:54
Module end 'content'
Timing: Jan 31 2025 03:30:54
Script end

Main resources:

Total runtime0.0253 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1328151.2109
Module start 'layout' 0.00470.0040 739.3438220.6875
Module start 'content' 0.00870.0148 960.0313997.9141
Module end 'content' 0.02350.0017 1,957.945329.9922
Script end 0.0252  1,987.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.4127140.0002
Check MTime0.00114.3920140.0001
Mysql Total
Database connection0.00072.630710.0007
Mysqli_queries0.00228.552930.0007
Looping result0.00000.063210.0000
Template Total0.00124.710.0012
Template load0.00093.633910.0009
Template processing0.00031.060810.0003
Override
Cache load0.00062.388310.0006
General
dbfile0.00197.479980.0002
String conversion0.00000.026440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs