cgishack
05-08-2007, 09:01 PM
Hello,
I am trying to write a javascript tab control.
I am using the below css to display the tabs. but right now i have to use
id="tabs". I would like to use class=tabs because i need to id property of the div to be dynamic.
Is there any way i can do this.
current css
#tabs
{
padding: 3px 0;
padding-top:8px;
margin-left: 0;
border-bottom: 1px solid #778;
font:bold 12px Arial;
}
#tabs li
{
list-style: none;
margin: 0;
display:inline;
}
#tabs li a
{
padding: 3px 0.5em;
border: 1px solid #778;
border-bottom: none;
background: #DEE8F5;
text-decoration: none;
}
#tabs li a:link
{
color: #666666;
}
#tabs li a:visited
{
color: #666666;
}
#tabs li a:hover
{
color: #FFF;
background: #1A4D84;
border-color: #000;
}
#tabs li a#current
{
background: white;
color:#000;
border-bottom: 1px solid white;
}
Drew
I am trying to write a javascript tab control.
I am using the below css to display the tabs. but right now i have to use
id="tabs". I would like to use class=tabs because i need to id property of the div to be dynamic.
Is there any way i can do this.
current css
#tabs
{
padding: 3px 0;
padding-top:8px;
margin-left: 0;
border-bottom: 1px solid #778;
font:bold 12px Arial;
}
#tabs li
{
list-style: none;
margin: 0;
display:inline;
}
#tabs li a
{
padding: 3px 0.5em;
border: 1px solid #778;
border-bottom: none;
background: #DEE8F5;
text-decoration: none;
}
#tabs li a:link
{
color: #666666;
}
#tabs li a:visited
{
color: #666666;
}
#tabs li a:hover
{
color: #FFF;
background: #1A4D84;
border-color: #000;
}
#tabs li a#current
{
background: white;
color:#000;
border-bottom: 1px solid white;
}
Drew