Reply
contact button image (mailto) - hover not working!!!
Old 05-07-2008, 04:19 AM contact button image (mailto) - hover not working!!!
Average Talker

Posts: 17
Name: Adrian
Hi everyone,

I have being trying to add a contact button image that is a link to an e-mail, but I cannot get the hover to work.

Please anyone could help me to make it work,as I have been trying and nothing seems to work:

CSS:

#contact_button {
background:url(images/contact.png.png);
width: 60px;
height: 18px;
margin: 0 0 0 720px;
list-style: none;
left: 73px;
float:left;
position:absolute;
outline:none;
}

HTML:

<div id="contact_button">

<a href="mailto:info@accuball.com.au">
<img src="images/contact.png.png" width=60 height=18 border=0></a></div>



I am trying to paste another image as a hover using:

CSS

#contact_button a:hover {
background:"contact_rol.png"
}

and it does not change over to the new image when I put the mouse over.

Please I would appreciate any advice.

Thanx in advance...
elv8 is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 05-07-2008, 07:37 AM Re: contact button image (mailto) - hover not working!!!
Average Talker

Posts: 17
Name: Adrian
and yesss, the file name is only a mistake, as I have been working on it for so many hours, it is correctly in my css the name is contact_button.png and contact_rol.png...

Please anyone have any suggestions???

Please...
elv8 is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 08:25 AM Re: contact button image (mailto) - hover not working!!!
Average Talker

Posts: 17
Name: Adrian
Problem solved - I have my solution here:

Code:

#contact_button {
width: 60px;
height: 18px;
margin: 0 0 0 720px;
list-style: none;
left: 73px;
float:left;
position:absolute;
outline:none;
}

#contact_button a {
height: 18px;
width: 60px;
display: block;
background-image:url(images/contact.png.png);
}

#contact_button a:hover {
background-image: url(contact_rol.png);
}

and html code:

<div id="contact_button">
<a href="mailto:info@domain.com.au">&nbsp;</a>
</div>



elv8 is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 02:43 PM Re: contact button image (mailto) - hover not working!!!
LadynRed's Avatar
Super Moderator

Posts: 5,617
Location: Tennessee
Glad you found it, I was going to tell you your syntax for the hover image was incorrect.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
LadynRed is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to contact button image (mailto) - hover not working!!!
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.16716 seconds with 15 queries