Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   [html]Horizontal scroll lock? (https://thetfp.com/tfp/tilted-technology/59986-html-horizontal-scroll-lock.html)

j0hnb 06-21-2004 07:39 PM

[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?

SinisterMotives 06-22-2004 02:36 PM

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.

j0hnb 06-22-2004 05:18 PM

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.

SinisterMotives 06-22-2004 05:29 PM

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.

Seventhnight 06-25-2004 03:29 AM

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;">

SinisterMotives 06-25-2004 09:11 AM

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.

j0hnb 06-26-2004 08:35 AM

Thanks


All times are GMT -8. The time now is 04:41 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62