Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CSS: Overflow hidden causes links to not work in Safari - online example

Posted on 2007-04-06
4
Medium Priority
?
667 Views
Last Modified: 2013-12-07
I am trying to create an animated scrolling list of images.  I use a div set with a small width and style overflow to "hidden".  It contains a larger div that contains the images.  Changing relative positioning of the large div moves the images, and the excess is clipped via the overflow.  It works great in firefox and IE ... see the example :

http://soxstudios.com/safari_problem_070406/

but in Safari, the overflow that is hidden (and shouldn't exist) causes problems.  It seems to block mouse events of elements that are visible in the same space.  The example demonstrates this - provided you view it using the Safari browser (I'm testing with Version 2.0.4 (419.3)).

Other sites that use the same technique work though.. like http://tv.yahoo.com and http://www.900frames.tv/ (the developer had this problem, and posted his solution - which doesn't help me : http://www.dynamicdrive.com/forums/showthread.php?t=7036 ).

i need help !!!
0
Comment
Question by:suki_babee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 30

Expert Comment

by:Mark Steggles
ID: 18867797
Hello suki_babee,

I havnt got safari so I cant test this. But you know that z-index only works on positioned elements? Just checking you know that

Regards,

Steggs
0
 

Author Comment

by:suki_babee
ID: 18868107
Thanks Steggs.  Yeah, I thought that but tried it anyway.  Countless IE problems make you try anything!  :)

So I actually solved the problem.  It turns out I *DO* have the same problem as the www.900frames.tv guy - as he posted.  Except my mistake was the height on the content div "box2" (his was width).  In my original prototype, I had it set to 37 pixels (the same as the images) - but didn't account for padding - so I needed 43 pixels.  It looked ok - and i only focused on checking the width.  I wish I had checked the $%&# height too.  It is very strange behavior.

To anyone searching for a solution to an overflow:hidden issue messing up links on a page in Safari - make sure the div that you position as relative is large enough to hold all the contents.  If not sure, set the width and height to very large values, and test that.  I'll update and leave the example up online for a while for anyone interested.   I wasted a whole day on this.  :(
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 24124875
Question PAQ'd, 500 points refunded, and stored in the solution database.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question