I am working on some simple tabs for my website. They can be seen here:
The problem is the white space in between each of the larger spaces marked "Tab x". I am trying to make the bottom border color of each of these small spaces something other then white. For the life of me no matter what I do in CSS the borders of these small spaces ALWAYS stay white. The border width changes ok within the CSS, but, I cannot get the border color to change no matter how I define the border-color in the CSS. These little spaces use a TD width="5" and class="tabs2" in the code below. I would appreciate it if anyone could help. My HTML code and CSS is below:
HTML Code:
<head>
<link rel="stylesheet" type="text/css" HREF="/stylesheet/mainnew.css" />
</head>
<body>
<br />
<TABLE class="tabtable" WIDTH="973" ALIGN="CENTER" cellspacing="0">
<tr>
<TD class="tabselected" valign="middle" width="240" height="44">
<center>Tab 1</center>
</td>
<TD class="tabs2" width="5" height="44">
</TD>
<TD class="tabs" valign="middle" width="240" height="44">
<center>Tab 2</center>
</td>
<TD class="tabs2" width="5" height="44">
</TD>
<TD class="tabs" valign="middle" width="240" height="44">
<center>Tab 3</center>
</td>
<TD class="tabs2" width="5" height="44">
</TD>
<TD class="tabs" valign="middle" width="240" height="44">
<center>Tab 4</center>
</td>
</tr>
</table>
</body>
</html>
CSS CODE (mainnew.css):
.tabs
{
border-color:#999;
border-style:solid;
border-width:1px 2px 2px; 1px;
float:left;
margin:0 5px 0 0;
background-image:url(background-attachment:scroll;
background-color:#eee;
background-position:0 -1px;
background-repeat:repeat;
}
.tabs2
{
border-bottom:2px solid #2472c2;
}
.tabselected
{
border-left:1px solid #999;
border-right:2px solid #2472c2;
border-top:4px solid #2472c2;
}
.tabtable
{
list-style:none outside none;
margin:0;
padding:0 0 0 10px;
height:44px;
}
Thanks for any help!
The problem is the white space in between each of the larger spaces marked "Tab x". I am trying to make the bottom border color of each of these small spaces something other then white. For the life of me no matter what I do in CSS the borders of these small spaces ALWAYS stay white. The border width changes ok within the CSS, but, I cannot get the border color to change no matter how I define the border-color in the CSS. These little spaces use a TD width="5" and class="tabs2" in the code below. I would appreciate it if anyone could help. My HTML code and CSS is below:
HTML Code:
<head>
<link rel="stylesheet" type="text/css" HREF="/stylesheet/mainnew.css" />
</head>
<body>
<br />
<TABLE class="tabtable" WIDTH="973" ALIGN="CENTER" cellspacing="0">
<tr>
<TD class="tabselected" valign="middle" width="240" height="44">
<center>Tab 1</center>
</td>
<TD class="tabs2" width="5" height="44">
</TD>
<TD class="tabs" valign="middle" width="240" height="44">
<center>Tab 2</center>
</td>
<TD class="tabs2" width="5" height="44">
</TD>
<TD class="tabs" valign="middle" width="240" height="44">
<center>Tab 3</center>
</td>
<TD class="tabs2" width="5" height="44">
</TD>
<TD class="tabs" valign="middle" width="240" height="44">
<center>Tab 4</center>
</td>
</tr>
</table>
</body>
</html>
CSS CODE (mainnew.css):
.tabs
{
border-color:#999;
border-style:solid;
border-width:1px 2px 2px; 1px;
float:left;
margin:0 5px 0 0;
background-image:url(background-attachment:scroll;
background-color:#eee;
background-position:0 -1px;
background-repeat:repeat;
}
.tabs2
{
border-bottom:2px solid #2472c2;
}
.tabselected
{
border-left:1px solid #999;
border-right:2px solid #2472c2;
border-top:4px solid #2472c2;
}
.tabtable
{
list-style:none outside none;
margin:0;
padding:0 0 0 10px;
height:44px;
}
Thanks for any help!