Marshmelly
12-17-2009, 07:32 PM
Here is my website: http://www.adorability.org
Basically, I want my images to have a 2px white border around them, and a 2px pink border on hover, which I was able to accomplish with this code:
a img {
border:solid #ffffff 2px;
}
a:hover img {
border:solid #EB7691 2px;
}
simple enough. But the thing is, I don't want this to affect the navigation images at the top of the page, so I created a class just for the navigation images. Here is the code for that:
.imgrollover {
padding:0px;
border:0px;
}
As you can see, it gets rid of the white border which is good, but the pink hover border is still there. What should I do?
Thank you in advance
UPDATE: I was able to make it work by adding the following:
.imgrollover:hover {
border:0px;
padding:0px;
}
Basically, I want my images to have a 2px white border around them, and a 2px pink border on hover, which I was able to accomplish with this code:
a img {
border:solid #ffffff 2px;
}
a:hover img {
border:solid #EB7691 2px;
}
simple enough. But the thing is, I don't want this to affect the navigation images at the top of the page, so I created a class just for the navigation images. Here is the code for that:
.imgrollover {
padding:0px;
border:0px;
}
As you can see, it gets rid of the white border which is good, but the pink hover border is still there. What should I do?
Thank you in advance
UPDATE: I was able to make it work by adding the following:
.imgrollover:hover {
border:0px;
padding:0px;
}