Skip navigation
Dweeboh
Currently Being Moderated

Hotspot tool on Image

Jun 20, 2012 9:52 PM

Tags: #image #menu #hotspot

I have a menu at the top that stretches 100% across the screen. The problem I am facing when using "HOTSPOT" on the image is.. When I go view it live in the browser, or shrink the browser it seems like the hotspots get offset from where I originally put them. Is their a way to fix this?

 
Replies
  • Currently Being Moderated
    Jun 20, 2012 10:02 PM   in reply to Dweeboh

    How have you coded the page?

     

    Can you provide a link so we can take a look?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 21, 2012 7:04 AM   in reply to Dweeboh

    style="position: absolute; top: 0; left: -7px; width: 100%"

    because you are pinning the image to the top left, changing the browser window dimensions will alter the relative location of those hot spots over the top of various parts of that image.

    You might be better off using a simple menu script. Then are tons of good menus available such as:

    http://www.cssplay.co.uk/menus/

    and

    http://www.cssmenumaker.com/

    Or, skip the 100% width. I for one amlost never want to expand a Web page out over my entire monitor.

    Then using a set width would allow your hotspots to stay put and work correctly. You could still have a 100% background image if you wanted,just keep the content (including menu) in a set width container

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 21, 2012 2:53 PM   in reply to Dweeboh

    Back in the 1990s, designers used image maps because it allowed them to let their creative juices flow on the web.  In 2012, we don't use image maps much anymore because they are not flexible.  Hotspot coordinates don't resize with the image.  There's no way to fix this unless you make your image map a set width in pixels.

     

    If you're married to a liquid layout (% based), slice your image map into separate images with your graphics editor.  Add links and float images across the page with CSS.  In narrower viewports, floated images will drop to the next line and links will remain intact.

     

    Example:

    http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points