![]() |
[html]Horizontal scroll lock?
Is there a way to only lock the horizontal scroll bar, not the vertical one? I've done a quick search on it with no luck. Any ideas on how to do this?
|
Do you mean eliminate the horizontal scrollbar completely? I'm not sure why you would want a page wider than the window width but not want the user to be able to scroll over it.
|
I'm using iframes, and all the info fits within the frame but no matter what I do I am still getting a horizontal scroll bar. The page that the iframe loads is pretty much a table with some text, I cut that to half the size of the iframe and I still get the scroll bar. I can't figure out what is wrong with it, so I want to remove it.
|
Scrollbars can only be turned off as a set in windows and frames, not just the individual horizontal or vertical scrollbar.
Does the problem occur in every browser, or just the one you're using? The only reason it would be showing a scrollbar is if part of the content is wider than the window. You may want to put temporary visible borders on all of the TABLE and DIV elements in that page so you can see what they're doing. In particular, a DIV with a width of 100% will expand to the width of the entire page rather than to the width of the containing block in Mozilla. |
not true... you can turn off individual scrollbars (in IE atleast)
this belongs on the page in the iframe.: <body style="overflow-x:hidden;overflow-y:scroll;"> |
Doh! Why didn't I think of that? :lol:
Regardless of that, it would be a good idea to find out why your page is forcing a horizontal scrollbar before you use a kludge to fix it. Kludging a layout or stylesheet tends to make for messy code - exactly the thing CSS was designed to help eliminate. |
Thanks
|
All times are GMT -8. The time now is 04:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project