Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Catty's Avatar
    Junior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    19
    Downloads
    0
    Uploads
    0

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

    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;
    }

  2. #2
    Tedy's Avatar
    Newbie - NLP

    Status
    Offline
    Join Date
    Apr 2012
    Age
    29
    Posts
    9
    Downloads
    0
    Uploads
    0
    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>

 

 

Quick Reply Quick Reply

Click here to log in


What comes after M0nday

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •