Tuesday, September 20, 2005

overflow:auto problems in Safari

when you've got an overflown div in a table it reserves the space for the full length div,even though it puts the scrollbars on correctly.

The solution? Put another div around it with the same height and overflow:hidden.

Boring I know, but nothing on google. I must seek a new career.

7 Comments:

Anonymous Anonymous said...

P tags form the containing element so move 'height' and 'overflow' properties from DIV's style to P's style. No need for second DIV.

8:55 am  
Anonymous Anonymous said...

thank you thank you thank you!
valentina from italy

9:05 pm  
Anonymous Anonymous said...

THANK YOU. This has solved a problem outstanding for a year on a friend's site.

Come on Apple, get it together and fix this issue.

6:58 pm  
Anonymous Anonymous said...

You star! - I was really about to lose it.

3:51 pm  
Anonymous Anonymous said...

Thanks for the info.
This helped me out of a jam!

4:13 am  
Anonymous Anonymous said...

Thank you.. you just saved my day.

This just reminded me why I hate MAC so much.

3:13 am  
Blogger Unknown said...

Thanks!!! THIS IS an awesome hint.

1:28 am  

Post a Comment

<< Home