Hey guys, I am building a site here and sort of stuck.
I am trying to get the site to have some tabs that just unhide a div on a click.
I used this site for the tab code (java, css)
http://www.elated.com/articles/javascript-tabs/
Any ways, What I am trying to do different from that site is have images as the div background instead of a solid color.
I can get the standard "unclicked" image to work fine (simple change for that). But when I try changing the selected and hover code to change a background image instead of color, it just changes the image around the 'a' text element instead of the div.
I know the problem, my CSS code is specifically telling it to! I just don't know the proper code to make the background cover the whole div, instead of just the bit of text.
here is the code for my css
I am trying to get the site to have some tabs that just unhide a div on a click.
I used this site for the tab code (java, css)
http://www.elated.com/articles/javascript-tabs/
Any ways, What I am trying to do different from that site is have images as the div background instead of a solid color.
I can get the standard "unclicked" image to work fine (simple change for that). But when I try changing the selected and hover code to change a background image instead of color, it just changes the image around the 'a' text element instead of the div.
I know the problem, my CSS code is specifically telling it to! I just don't know the proper code to make the background cover the whole div, instead of just the bit of text.
here is the code for my css
Code:
ul#tabs {
width: 100%;
overflow: hidden;
margin: 0 0 -1px 0;
position: relative;
}
ul#tabs li {
background: url(images/name1.png) no-repeat 0% 0%;
width: 67px;
height: 28px;
overflow: hidden;
padding: 0 0 0 10px;
float: left;
line-height: 30px;
}
ul#tabs li a {
font-size: 0.917em;
font-weight: bold;
text-decoration: none;
color: #000;font-size: 0.917em;
font-weight: bold;
text-decoration: none;
color: #000;
}
ul#tabs li a:hover {background: url(images/name1ovr.png) no-repeat 0% 0%;}
ul#tabs li a.selected {
color: #3a3a32;
}
ul#tabs li a.selected {
background: url(images/name-act.gif) no-repeat 0% 0%;
width: 80px;
}