Click to See Complete Forum and Search --> : exclude images for border
GoverNment
07-05-2008, 10:39 PM
hello, i have a website i been working on, and i got images that are hyperlinks and i was wondering if i could have no border/hover border color. but with hover color for the navigation..if you need the example just ask..hopefully it's clear enough
Centauri
07-05-2008, 10:50 PM
a img {
border: 0;
}
WebJoel
07-07-2008, 07:45 AM
Keep in mind that if a border is added for the psuedo-state ":hover", it adds to the width/height of this image. This could be placement-busting, causing the image to 'shift' a bit when hovered-over.
A way around this is if you want a 'border' to become visible on-mouseover/hover, give the at-rest state a transparent, none (or, same-color-as-background border) for the a img {border:2px solid white;} and replace border color with your chosen color for the 'hover' state.