superslurpee
Programmer
- May 15, 2002
- 108
Hi,
I'm having a problem with border-collapse/separate in Firefox.
I have a table inside a container with a border on each cell. If I use border-collapse:collapse on the table the borders on the cells extend outside of the container.
If I use border-collapse:separate on the table, there is a 1px crack between the container and the border on the cells. I want the table and its cell border smack up against the container. IE does this the way I want but since IE is stupid, I'm assuming I'm doing something wrong!
Here's a very simple example of two tables, one with collapse and one with separate. Give them a try in Firefox and let me know your thoughts!
Thanks in advance!
--superslurpee--
- Thousands of low cost, high quality website templates
I'm having a problem with border-collapse/separate in Firefox.
I have a table inside a container with a border on each cell. If I use border-collapse:collapse on the table the borders on the cells extend outside of the container.
If I use border-collapse:separate on the table, there is a 1px crack between the container and the border on the cells. I want the table and its cell border smack up against the container. IE does this the way I want but since IE is stupid, I'm assuming I'm doing something wrong!
Here's a very simple example of two tables, one with collapse and one with separate. Give them a try in Firefox and let me know your thoughts!
Code:
<div style="position:absolute; width:300px; left:200px; top:100px; height:100px; border:1px solid black;">
<table width="50%" style="border-collapse:separate">
<tr>
<td style="background:blue; border:10px solid red;">Separate 1</td>
<td style="width:10px;"></td>
<td style="background:blue; border:10px solid red;">Separate 2</td>
</tr>
</table>
</div>
<div style="position:absolute; width:300px; left:200px; top:300px; height:100px; border:1px solid black;">
<table width="50%" style="border-collapse:collapse">
<tr>
<td style="background:blue; border:10px solid red;">Collapse 1</td>
<td style="width:10px;"></td>
<td style="background:blue; border:10px solid red;">Collapse 2</td>
</tr>
</table>
</div>
Thanks in advance!
--superslurpee--
- Thousands of low cost, high quality website templates