26331

Absolutely positioned images in Chrome/Safari

Question:

My client's websit has a navigation bar in the form of a wide image banner. I'm using the HTML <area> tag and JavaScript to overlay navigation buttons (which are themselves images) whenever the user mouses over certain regions of the banner. The buttons are absolutely positioned over their respective <area>'s, and are hidden/shown based on the mouse position.

While I have it working on Chrome, I've noticed that the buttons are appearing in the wrong place on Safari. I've struggled to figure out what the issue is, but haven't been successful so far. Has anyone encountered a problem like this before?

Here's a link to the draft of the site: <a href="http://bit.ly/dLIh4k" rel="nofollow">http://bit.ly/dLIh4k</a>. Thanks!

Answer1:

not sure if this applies to you but there are known issues with absolute positioning if the parent uses relative positioning.

Recommend

  • Autoscroll on parent panel, when there is overflow on child panels.Extjs
  • Pivot table calculated Field from count of values
  • Writing a recursive function on lists in Haskell
  • 1º Day of Daylight Saving Time Java and JS showing a different behavior
  • Line with fill and stroke
  • Youtube Video Player Fullscreen click event
  • Change the width of the JQM panels
  • How can I have an actor running on one process send a message to another actor running on a separate
  • Scrolling News Ticker Jquery - Issues
  • How to control Trigger state (Pause, Play) using code (not just buttons)
  • How to merge two Request in Laravel
  • Is there an easy way to associate an event with a ListViewItem?
  • Prevent parent page from scrolling when mouse is over embedded iframe
  • CKeditor stripping font tags instead of converting to span
  • Basic defensive programming [duplicate]
  • Adding directive inside the directive programatically
  • How do you remove the JComboBox 'click and see dropdown' functionality?
  • Creating a Multi-Step Modal Using Jquery
  • Draw half infinite lines?
  • How to create two column output from a single column
  • How can I get the choice “H2” back in the H2 consol?
  • Android device acting as an accessory
  • Approximate Order-Preserving Huffman Code
  • Debug.DrawLine not showing in the GameView
  • HTTP/2 streams vs HTTP/1.1 connections
  • Custom Tabgroup Appcelerator
  • Use of this Javascript
  • Android full screen on only one activity?
  • C++ Partial template specialization - design simplification
  • Syntax for setting draggablecursor property in google maps api
  • Adding custom controls to a full screen movie
  • How to get next/previous record number?
  • GridView Sorting works once only
  • How to get icons for entities from eclipse?
  • Python: how to group similar lists together in a list of lists?
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • Authorize attributes not working in MVC 4
  • Busy indicator not showing up in wpf window [duplicate]
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF