AllDeaf.com
Our Sponsors

Go Back   AllDeaf.com > Technology > Web, Graphic Design & Site Building
  
Reply
 
LinkBack Thread Tools Display Modes
Old 05-07-2007, 06:25 PM   #1 (permalink)
Registered User
 
NevadaSam's Avatar
 
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>
Thanks for looking at this.

Sam
NevadaSam is offline   Reply With Quote
Alt Today
Deafness

Beitrag Sponsored Links

__________________
This advertising will not be shown in this way to registered members.
Register your free account today and become a member on AllDeaf.com
   
Old 05-07-2007, 08:43 PM   #2 (permalink)
I'm listening to everyone
 
webexplorer's Avatar
 
Join Date: Jun 2003
Location: New England
Posts: 4,505
Send a message via AIM to webexplorer
What software are you using for your website?
webexplorer is offline   Reply With Quote
Old 05-07-2007, 11:42 PM   #3 (permalink)
Deaf258
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>
  Reply With Quote
Old 05-08-2007, 12:21 AM   #4 (permalink)
bloody phreak from hell
 
VamPyroX's Avatar
 
Join Date: Feb 2003
Location: Hell
Posts: 31,473
Send a message via ICQ to VamPyroX Send a message via AIM to VamPyroX Send a message via Yahoo to VamPyroX
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!)
VamPyroX is offline   Reply With Quote
Old 05-14-2007, 12:01 PM   #5 (permalink)
Click me 12 time
 
PowerON's Avatar
 
Join Date: Mar 2007
Location: Suddenly, I'm cowboy.
Posts: 6,863
Blog Entries: 4
Send a message via Yahoo to PowerON
Quote:
Originally Posted by VamPyroX View Post
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.
no. CSS appear more and better control on Firefox than IE in PC

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.
__________________
• [Illustrator.Blog-alloon.com] •
Don't shoot me! I'm only blogger!
PowerON is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:59 PM.


Join AllDeaf on Facebook!    Follow us on Twitter!

All text, images, and other content are Copyright © 2002-2009 by AllDeaf.com. All Rights Reserved.
vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.