Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 55
Name: Adrian
Trades: 0
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
 
 
Register now for full access!
Old 05-07-2008, 08:37 AM Re: contact button image (mailto) - hover not working!!!
Skilled Talker

Posts: 55
Name: Adrian
Trades: 0
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, 09:25 AM Re: contact button image (mailto) - hover not working!!!
Skilled Talker

Posts: 55
Name: Adrian
Trades: 0
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, 03:43 PM Re: contact button image (mailto) - hover not working!!!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to contact button image (mailto) - hover not working!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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.26907 seconds with 12 queries