Solved

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

Posted on 2007-04-06
4
659 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: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

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

Suggested Solutions

Title # Comments Views Activity
Form Data Disappears Using Back Button 4 67
CSS (jquiry mobile) question 3 34
Chrome won't open  - win 10 6 76
center div inside another div 2 32
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

734 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