i’ m making a website that have to work with all browsers.
I’ ve tested IE, FF, Opera, Chrome and solved a lot of thing related to CSS and jQuery compatibility… but the last thing is making me crazy 🙁
Safari doesn’ t work as it should on the vertical div scrollbar. It is blocked at the bottom of div at the first access. Zooming in/out the page is the only way to unlock it… then it works…
I have this CSS (just a part of it) :
html, body {
margin: 0px 0px 0px 0px;
font-family: "Trebuchet MS", sans-serif;
background-color:#FFF2E6;
height:100%;
overflow:hidden;
}
#content {
margin-top:5px;
margin-left:170px;
position:fixed;
float:right;
width:88%;
height: 85%;
display:inline;
overflow:auto;
background-color:#E5E5E5;
}
#main_content {
position:static;
width:99.8%;
height: 85%;
}
The HTML page (just the interested block) :
<div id="main_content">
<div id="menu">
<p>Menu</p>
... menu block ...
</div>
<div id="content"><p>Content</p></div>
</div>
Is there any way to solve the Safari div scroll stuck problem?
Thanks very much for your help and sorry for my english.
The problem is that I have a PHP generated page that is printed in the
#content divvia Ajax functions, well, this page has some iframe tags for files upload (the only working trick to upload a file in a jQuery/Ajax context..) Theseiframehad the src property set tosrc='#'what made Safari stuck on a simple div scrolling…So if you encounter a problem like this just remember to fix your
iframe src="#"toiframe src=".