posted 19 years ago
if I specify <table border=1>...</table>
all the cells in the table have a border
but if I specify it in the stylesheet
like
#displayTable1 table{
border: thin solid #0000ff;
}
and then in my html:
<div id="displayTable1>
<table>
...
</table>
</div>
only the border around the table shows up, there's no border on the individual cells
so I have to do
#displayTable1 table{
border: thin solid #0000FF;
border-collapse: collapse;
}
#dataTable1 td{
border-color: blue;
border-style: solid;
border-width: thin;
}
in order to achieve the same effect as <table border=1...>..</table>
however it seems like border-collapse:collapse does not work, each cell has its own order and does not overlap to one with the adjcent cells.
how do I fix this problem in css?
thanks
[ December 17, 2004: Message edited by: jonathan hello ]