Forums / Setup & design / Problem with table layout
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
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. :)