Hello all, I am helping create a website. Over a particular Image I have, I want it to say the name of the link, ie Home. While I got my cool flash things working where the image changes colors on mouseover, I can not get the text of the link to appear on the image itself, it always appears around the image but touching it. Any idea how to get the text onto the image? Thanks.
Roebuc 0 Junior Poster
Recommended Answers
Jump to PostCan you post some code?
Not sure if a background image on the link will fix your problem OR one of a "title" or "alt" attributes on one of the elements you are doing. Hard to troubleshoot without knowing what you are looking at.
Jump to PostThe text you insert in the alt tag wil show in IE (fairly sure it doesn't work in firefox)
eg: <img alt="text goes here"
Is that what you are wanting ?
Jump to PostI think you are looking for the title attribute:
<a href="" title="Look at me"><img src=""/></a>
or:
<a href=""><img src="" title="Look at me"/></a>It can be used on the <a> and/or the <img> tags.
All 10 Replies
hielo 65 Veteran Poster
Roebuc 0 Junior Poster
Tropp 0 Light Poster
Roebuc 0 Junior Poster
Tropp 0 Light Poster
Roebuc 0 Junior Poster
hielo 65 Veteran Poster
Roebuc 0 Junior Poster
Roebuc 0 Junior Poster
Roebuc 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.