few doubts with cell spacing and cell bordering[solved]
Posted: Fri Mar 31, 2006 4:38 am
view image file
If you see that table, it does not have a border actually, it is the cellspacing that appears to be a border with color as black.
I am wondering is it possible to control cell spacing width through CSS and I do not want to do it from the table tag within PHP or HTML files.
How to also specify border width and color, I mean the cell borders and I know that border property in CSS only allows to put border around the table.
Can anyone tell me what is the default cellspacing width if not specified explicitly...is it 1???
Will it accept numbers less that one???
you can also point to good tutorials which explains these CSS properties....thanks
the CSS bit...
If you see that table, it does not have a border actually, it is the cellspacing that appears to be a border with color as black.
I am wondering is it possible to control cell spacing width through CSS and I do not want to do it from the table tag within PHP or HTML files.
How to also specify border width and color, I mean the cell borders and I know that border property in CSS only allows to put border around the table.
Can anyone tell me what is the default cellspacing width if not specified explicitly...is it 1???
Will it accept numbers less that one???
you can also point to good tutorials which explains these CSS properties....thanks
the CSS bit...
Code: Select all
.standardTable{
margin:5px 0px 5px 0px; border:1px solid #000000; background-color:#000000; width:100%; cellspacing:1px;
}
.standardTable th{
text-align:center; padding:3px 15px 3px 15px; font-weight:bold; background-color:#BCD5E7;
vertical-align:top;
}
/*.standardTable td{
padding:4px 15px 4px 15px; background-color:#E1ECF4; vertical-align:middle;
}*/
.standardTable td{
padding:4px 15px 4px 15px; background-color:#FFFFFF; vertical-align:middle;
}
.standardTable, .standardTable table{
font-size:0.8em; font-family: Verdana, Arial, Helvetica, sans-serif;
}