How do I create an image link to a folder on my desktop using CSS in html?

Catty

New member
I am writing html and using CSS. I am positioning it in the page and I need an image to be a link to a folder on mydesktop. Using this format that I'm about to show you, how would I link this image to that folder? Is it when I create the <div> or is it in the CSS command itself?

.image {
width: 700px;
height: 700px;
position: absolute;
top: 0px;
left; 0px;
}
 
If you want to use an image as a link, you have to to this:

<a href="link"> <img src="imageurl"> </a>

You cannot set links in CSS! With your css atributes, the script should look like this:

<a href="link'> <img class="image" src="imageurl"> </a>
 
Back
Top