Td cellspacing in IE 8?

hi all,

i know i know i rarely use tables but this is for tabular data,
so please dont give me lectures on the whole using tables thing!

how do i get the cellspacing to work properly in IE8?

it looks more in ie8 than in firefox…wierd?

.tablemain td{
margin: 0px;

Something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
table.address {
} {width:26%}
th.addr {width:37%} {width:22%}
.address th,.address td {
.address td {background:#f5f5f5}
tr.even td {background:#eee}

<table class="address" cellspacing="0" cellpadding="0">
            <th class="name">name </th>
            <th class="addr">address</th>
            <th class="contact">contact number</th>
        <tr class="even">
            <td>4 battle ridge road</td>
            <td>4 battleridge road</td>
        <tr class="even">
            <td>nike sports limited</td>
            <td>new york</td>
            <td>my house</td>

ahh …thankyou yet again! :wink:

Remove all the height=“32” attribute from the table and then just set the height with padding.

td {
  [B]  padding:0.7em;[/B]
    margin: 0px;

A table is the correct element for tabular data so there is no problem using it in your example. However don’t use presentational attributes and style it all with css. Remove all those attributes (heights and widths and bgcolors) and just do it in css.:slight_smile: