...

View Full Version : cellpadding=0



jeorg
07-12-2002, 03:11 PM
what is the equivalent of cellpadding=0 for CSS2 ?

I have tried

.myTable
{

padding:0px;
border-spacing:0px;
border-collapse:collapse;
}

but it doesn't work at all

pb&j
07-12-2002, 06:33 PM
try adding the margin and border properties too.

.myTable
{
padding:0px;
border-spacing:0px;
border-collapse:collapse;
margin:0px;
border:0px;
}

jeorg
07-12-2002, 08:58 PM
yes I did it but it doesn't work

.tb_one
{
width:780px;
height:147px;
background-color:#FF0066;
border:0px;
padding:0px;
border-collapse:collapse;
border-spacing:0px;
margin:0px;
}

----------------------------------------
<TABLE class="tb_one">
is different than
<TABLE class="tb_one" cellpadding="0">

seems that CSS2 cannot replace cellpadding="0" for IE6



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum