BillyRayPreachersSon
Programmer
I'd like to be able to collapse borders on adjacent elements without having to resort to using tables, and without having multiple styles.
At the moment, I have:
Code:
<STYLE TYPE="text/css">
.myItem
{
border-top: solid #CC3300 1px;
border-bottom: solid #CC3300 1px;
border-left: solid #CC3300 1px;
}
.myLastItem
{
border: solid #CC3300 1px;
}
</STYLE>
...
<DIV>
<SPAN CLASS="myItem">abc</SPAN>
<SPAN CLASS="myItem">def</SPAN>
<SPAN CLASS="myLastItem">ghi</SPAN>
</DIV>[code]
Which works fine.
However, I want to be able to dispense with having 2 classes, so I could just have:
[code]<STYLE TYPE="text/css">
.myItem
{
border: solid #CC3300 1px;
}
However, this doubles up the adjacent borders.
I've tried using the
Code:
border-collapse: collapse;
Is there any way I can achieve this, or am I stuck with my 2-class (but not 2nd-class!) solution until browsers get more CSS support for tabular layouts?
Dan