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
css background image text hover
Old 04-16-2006, 08:43 PM css background image text hover
davlam's Avatar
Experienced Talker

Posts: 47
Trades: 0
Hi this is a direct post from a m8 of mine. I can't think how to do this purely in css.

Quote:
This is a bit of a style.css sheet for my blog, and it displays the image at the top of the page.
How do I add a bit to display text when I hover over the pic with the mouse?

Cheers.


#header {
background-image:url(images/header_back.gif);
background-repeat:no-repeat;
background-position: top center;
width:517px;
height:114px;
margin-left:7px;
}
anyone help,

cheers,


dave
__________________

Please login or register to view this content. Registration is FREE
photography services, galleries, blog and forums.
davlam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-16-2006, 10:48 PM Re: css background image text hover
The Ape's Avatar
Super Talker

Posts: 129
Trades: 0
You cannot apply an "alt" text to a background image.

The link below may be helpful in trying to give the appearance of alternative text.

http://evan.nixsys.bz/note/
__________________

Please login or register to view this content. Registration is FREE
The Ape is offline
Reply With Quote
View Public Profile Visit The Ape's homepage!
 
Old 04-17-2006, 05:32 AM Re: css background image text hover
davlam's Avatar
Experienced Talker

Posts: 47
Trades: 0
that's exactly what i thought and have asked him to show me what his layout is and if possible i'll change it in html. I'll look at that link shortly

thank you ,

cheers
__________________

Please login or register to view this content. Registration is FREE
photography services, galleries, blog and forums.
davlam is offline
Reply With Quote
View Public Profile
 
Old 04-19-2006, 06:09 PM Re: css background image text hover
Super Talker

Posts: 102
Trades: 0
If you'd want a text-hover on that background image, why not put a title on the div it's in ? Like

HTML
Code:
<div id="header" title="put text-hover here">whatever</div>
CSS
Code:
#header {
background-image:url(images/header_back.gif);
background-repeat:no-repeat;
background-position: top center;
width:517px;
height:114px;
margin-left:7px;
}
ghettobert is offline
Reply With Quote
View Public Profile
 
Old 04-24-2006, 07:14 AM Re: css background image text hover
Novice Talker

Posts: 7
Trades: 0
You can always position a transparent gif over all or part of your header background image and give that a title. Internet Explorer wrongly displays alternative text as a tooltip since you are only meant to see this text if the image fails to load... so for tooltips that will show in all browsers use 'title'.
thriva is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css background image text hover
 

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