|
|
|
|
|
|
#1 |
|
Member
Join Date: Aug 2005
Posts: 28
|
Anyone know a workaround for the following??
I open a small window to display an image exactly the size of the window. With an html{overflow:auto;} style, there are no scrollbars unless the user reduces the size of the window. This works fine in IE and Firefox on a PC, and in Firefox on a Mac. In Mac/Safari, scrollbars appear. Workaround: Use CSS to make the image height 1 pixel less than the window size. Now the scrollbars disappear until the user reduces the size of the window. Here's an example of what I mean: http://www.galapagos.to/temp/test.htm The Test 1 link displays the scrollbars in Mac/Safari, but works fine elsewhere. The Test 2 link is my clunky workaround. I'm wondering if anyone knows a better way? |
|
|
|
|
|
#2 | |
|
Founding Sysop
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,202
|
Quote:
It was really weird in Opera 8.0.2 — the images were both about 10 pixels tall and both had horizontal scrollbars. __________________ :: |
|
|
|
|
|
|
#3 | |
|
Member
Join Date: Aug 2005
Posts: 28
|
Quote:
). But as before, I don't see the scrollbars in either test. IOW, both versions of Firefox work fine here, and it's only Mac/Safari -- 2.0.3(417.8) -- that has the scrollbar problem.
|
|
|
|
|
|
|
#4 | |
|
Founding Sysop
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,202
|
Quote:
Truly puzzling. (And the Opera thing is bizarre!) __________________ :: |
|
|
|
|
|
|
#5 | |
|
Member
Join Date: Oct 2005
Location: Amsterdam, NL
Posts: 4,894
|
Quote:
Code:
<style type="text/css">
html {overflow:auto;}
body {margin:0;}
img {position:absolute; width:700px; height:499px;}
</style>
__________________ Marjolein Katsma Look through my eyes on Cultural Surfaces (soon!), My ArtFlakes shop and Flickr.Occasionally I am also connecting online dots... and sometimes you can follow me on Marjolein's Travel Blog |
|
|
|
|
|
|
#6 | |
|
Member
Join Date: Aug 2005
Posts: 28
|
Quote:
). The code I posted was stripped down to a bare minimum, for the purposes of (?) clarity. And in this specific example, the padding:0; had no effect one way or the other. In fact, so far the only way I can get rid of the Safari scrollbars is if the window height is one pixel (or more) greater than the image height. That, or force the scrollbars to be hidden, which I don't want to do.
|
|
|
|
|
|
|
#7 | |
|
Member
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,148
|
Quote:
The chapter on debugging CSS problems is especially interesting. I thought I would mention this book, since it fits right in with your problem. |
|
|
|
|
|
|
#8 |
|
Member
Join Date: Aug 2005
Posts: 28
|
Thanks for the reference to the Lowery book -- I'll go have a look to see if he says anything about Mac/Safari bugs too.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Safari problem | dacoyle | Web Site Building & Maintenance | 7 | 01-15-2007 05:06 PM |
| InDesign CS: Text frame overflow check? | bmann | Print Design | 3 | 10-15-2006 08:30 AM |
| Testing in Safari... | iamback | Web Design | 1 | 06-09-2006 05:06 AM |
| New Safari Enhancer (Mac) | ktinkel | General Publishing Topics | 0 | 01-17-2006 08:54 AM |
| Safari 1.3 and RSS | ktinkel | The Corner Pub | 0 | 04-28-2005 12:34 PM |