Forum Moderators: not2easy

Message Too Old, No Replies

css and image link

css and image link

         

oldworldcharms

6:24 am on Jun 21, 2005 (gmt 0)

10+ Year Member



How do I make an image a link in css?

thanks
Elizabeth

bill

7:28 am on Jun 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld Elizabeth.

You would make an image a link in your HTML, not CSS. Something like this:

<a href="example.com"><img src="/images/01.jpg"></a>

Moby_Dim

7:40 am on Jun 21, 2005 (gmt 0)

10+ Year Member



You create links via html, not css. you use css to change visual representation of already existing link. A simple <a href="..."><img src="..." .../></a> - you may add various css properties to both <a> and <img>. Another pole - search in Google "Flickerless Image Replacement" - view #1 - the best article on the theme i've ever seen.