Log in

View Full Version : firefox scrolling issues



scotty.campbell
01-17-2006, 03:50 AM
im doing my new website with frames and iframes, and everything looks great in IE but when I look at it in firefox at ton of stuff is mess up with things centering and scrolling issues. frames that shouldn't be scrolling are scrolling and i cant figure out why it's doing it in firefox.

is there a certain code that you can put in to disable scrolling for firefox??

feel free to check out my site

http://www.swc3d.com/html

thanks for the help!

scott

jscheuer1
01-17-2006, 06:45 AM
Well, I was just viewing your site in FF and though I thoroughly enjoyed it, especially the QT animation, I could see no scrollbars other than the one on the page itself. To prevent scrollbars from appearing on (i)frames, the surest method is to set the style on the page showing through the (i)frame:


<style type="text/css">
body {
overflow:hidden;
}
</style>

You can also set the scrolling attribute on the frame or iframe:


<iframe scrolling="no" frameborder="0"></iframe>

However, usually, just setting it to auto is enough if you make absolutely sure the content that will show through it will not exceed the (i)frame's dimensions by even a single pixel.

scotty.campbell
01-17-2006, 07:29 AM
awesome, thanks john! glad you liked my demo reel ;) it was a lot of work.

yea the scroll bars themselves aren't the problems im having, its just the frame can be scrolled with the middle scroll wheel if the curser is over it, and i dont like that at all. i tried scrolling="no" but i cant seem to get that to work. i didn't have the frameborder in there though, so maybe that is my problem.

i think that my content in the frames might just be larger than the frame it self so i will have to go through and size everthing down if this doesn't work.

thanks for all the help! you deffinetly know your stuff!

scott