Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8295657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:41:05+00:00 2026-06-08T14:41:05+00:00

I have images that are also links, coded like this: <a href=../www.google.com><img src=pages/squirrely.png /></a>

  • 0

I have images that are also links, coded like this:

  <a href="../www.google.com"><img src="pages/squirrely.png" /></a>

They work fine, but I want it to be a link, only if you click the general middle of the photo. If you click on the outer regions of the image, I don’t want any linking to happen.
I tried changing the width and height of the lin, but it didn’t work. My css is:

#magazine a {
width: 100px;
height: 100px;
border: 5px solid #fff; 
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:41:08+00:00Added an answer on June 8, 2026 at 2:41 pm

    I would not work with an imagemap in this case, but do something like this:

    The HTML:

    <div class='container'>
     <img .../>
     <a ... ></a>
    </div>
    

    The CSS:

    .container {
     position: relative;
    }
    .container img {
     width: 100px;
     height: 100px;
     border: 5px solid #fff;
    }
    .container a {
     display: block;
     width: 60px;
     height: 60px;
     position: absolute;
     top: 25px;
     left: 25px;
    }
    

    Basicly this puts your link on top of your image. I find it much easier to play with the positioning and the dimensions of the link this way. (I did not test the code, but i think it should work)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some images that are wrapped within containers like this: <div id=swatchcontainer> <div
I have gallery.php that loads images with src path from a database. I also
I have 18 images that gets displayed like 6 images in each row. I
I have an HttpHandler (have also done this as an ASPX page) that retrieves
I have images that need to scale to the screen's size. The images will
I have 5 images that I am appending to a div that I want
I have multiple images that have the same class attribute and I want to
I have 3 images that I want to add one after other on a
I have some images that need to change, based not only on hover, but
I have three images that I want to cycle through when clicking on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.