Forums / Setup & design / Problem with table layout

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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;", Exponential 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. :)