|
|||||||
| CSS Discussion and technical support relating to Cascading Style Sheets. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
menu button to be another color when active
Hello, for the site robotbuy.com left side blue menu buttons, I want the active button to remain as red. Right now only if you hover the mouse it becomes red.
For the .menu active I tried pasting the background:url('http://www.robotbuy.com/pictures/button2.png') no-repeat 0 0; which is the red button, but it doesnt work. Please advice. Here is the css: Code:
.menu{
width:100px;
}
.menu a{
display:block;
width:175px;
height:48px;
valign: center;
background:url('http://www.robotbuy.com/pictures/button1.png') no-repeat 0 0;
line-height:30px;
font-family:Arial;
font-size:12px;
font-weight: bold;
color:black;
text-align:center;
text-decoration:none; margin-left:0px; margin-right:0px; margin-top:-17px; margin-bottom:0px;
}
.menu a:visited{
color:#white;
}
.menu a:hover{
color:white;
background:url('http://www.robotbuy.com/pictures/button2.png') no-repeat 0 0;
}
.menu a:active
{
color:#ffffff;
}
__________________
http://www.roboticmagazine.com |
|
#2
|
|||
|
|||
|
Well in the CSS you posted the only thing set to happen on active is for the text to be white, no mention of the red image.
|
|
#3
|
||||
|
||||
|
The active button remains red.
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|