Solved

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

Posted on 2007-04-06
4
645 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
4 Comments
 
LVL 30

Expert Comment

by:Steggs
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now