![]() |
|
|||||
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2006
Location: Georgia
Posts: 9
|
Image underline during hover
I want to use a dotted underline when I hover over a text link, but I don't want this to show up when I hover over a image link. Is there a way I can do this without calling a different class when I have an image link?
Code:
<style type="text/css">
img {
background-color:#FFFFFF;
border: 1px solid #ff12fc;
padding: 5px;
margin: 5px 5px 0 0;
}
a:hover {
color:#666;
text-decoration: none;
border-bottom:dotted;
}
a:hover img {
background-color:#00FF00;
border: 1px solid #ff12fc;
padding: 5px;
margin: 5px 5px 0 0;
text-decoration: none; /* the underline shouldn't show, but it does */
}
</style>
Sam |
|
|
|
|
|
|
|
__________________
This advertising will not be shown in this way to registered members. Register your free account today and become a member on AllDeaf.com |
|
|
|
#3 (permalink) |
|
Guest
Posts: n/a
|
I think it has to do with border-bottom:dotted;, so you might have to add the same in the hover img style as border-bottom:solid; .. There's more at CSS Border Properties ..
Let me know if this worked for you or not. Code:
<style type="text/css">
img {
background-color:#FFFFFF;
border: 1px solid #ff12fc;
padding: 5px;
margin: 5px 5px 0 0;
}
a:hover {
color:#666;
text-decoration: none;
border-bottom:dotted;
}
a:hover img {
background-color:#00FF00;
border: 1px solid #ff12fc;
padding: 5px;
margin: 5px 5px 0 0;
border-bottom: solid;
text-decoration: none; /* the underline shouldn't show, but it does */
}
</style>
|
|
|
|
#4 (permalink) |
|
bloody phreak from hell
![]() |
While CSS may make a lot of things "awesome", it doesn't always work on all browsers.
There are things that I can do in IE but not in Firefox.
__________________
![]() Check out my city... CLICK HERE! (If you already visited yesterday, visit again today!) |
|
|
|
|
|
#5 (permalink) | |
|
Click me 12 time
|
Quote:
however, for Mac - Safari appear more fine graphic visual on CSS than Firefox. You can test most weblog that use Wordpress with heavy nice CSS, compare between IE and Firefox. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|