I'm not going to write out the CSS I'm using, but it's typical decorative stuff.
So, let's say that I want one design to use text for the links, and another to use background images. I thought this would work:
#menu li#Photos a
{
background:url(menu\Photos.jpg);
}
But it doesn:(t :(. It puts the background image in as well as the text. I'd like to know what I could do to just not draw the text, either using transparency or some other trick. Thanks.
Question
Starman
Hi all,
I'm trying to write my web site as dynamically as possible. Currently, I'm using <ul> to make up my list of links like so:
I'm not going to write out the CSS I'm using, but it's typical decorative stuff.
So, let's say that I want one design to use text for the links, and another to use background images. I thought this would work:
#menu li#Photos a { background:url(menu\Photos.jpg); }
But it doesn:(t :(. It puts the background image in as well as the text. I'd like to know what I could do to just not draw the text, either using transparency or some other trick. Thanks.
Mike
Link to comment
https://www.neowin.net/forum/topic/103537-css-replace-a-link-text-with-an-image/Share on other sites
17 answers to this question
Recommended Posts