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 6994603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:54:48+00:00 2026-05-27T19:54:48+00:00

I am midway through creating a website and I have come across an issue

  • 0

I am midway through creating a website and I have come across an issue that I do not know how to fix, on the site there is a rectangular image with a hotspot in the center, I have used the following css code –

 #image_map  
    {
        display: block;   margin-left: auto;   margin-right: auto; 
        width:302px;
        height:65px;
        background:url(Images/ManordLogo.png) no-repeat;
        position:relative;
        }
        #image_map a
        {
            display:block;
            position:absolute;
            }

            #image_map a#link1
            {
                width:42px;
                height:49px;
                top:11%;
                left:43%;
                }

The first line centers the image and allows the page to be scale-able, the following code defines and creates the hotspot. Everything works fine and the hotspot & Image remain in their correct position, however on the design side I need the image about 20px lower than its current position at the top of the page.
Every-time I try and use margins or padding or any form of positioning the image jumps to the top right hand corner of the page, and I have no Idea why.

I need the image and the hotspot to stay the same and the position of the hotspot to remain relative regardless of the browser window size but for the design I need the image to be moved down by 20px

Where am I going wrong and how can I achieve this?

EDIT – I have created JsFiddle Version, so you can see what I mean, the black represents the entire image and the aqua represents the hotspot, I need the entire block (black and aqua) to move down by 20 pixels while still remaining centered and scale-able.

Link to JSFIDDLE – http://jsfiddle.net/cT3Eu/

Thank you.

  • 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-05-27T19:54:49+00:00Added an answer on May 27, 2026 at 7:54 pm

    I have tested it in IE7, 8, 9, current Firefox version and current Chrome version, and the add of margin-top: 20px; for #image_map works fine for me: http://jsfiddle.net/cT3Eu/1/

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

Sidebar

Related Questions

Not until midway through a 3 hour build script, I'll remember that I want
I have a localhost webpage that occasionally splits out broken HTML midway through the
I have a MySQL database of newspaper articles. There's a volume table, an issue
I have a jar that when run, goes through the files in a directory
(See related question: How do I report an error midway through a chunked http
I am about to join a new software team midway through a project. They
In C++, how does one rename a variable midway through a block? References and
Is there some way to change Rails environments mid-way through a test? Or, alternately,
I'm trying to insert some text midway through some HTML content using the following
The following confirmDialog function is called midway through another jquery function. When this confirmDialog

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.