AV1611 Posted September 18, 2008 Share Posted September 18, 2008 I have a site that extends beyond the bottom of the page forcing scrollbars, except on one page... which causes that irritating shift of the site. can I force scrollbars (vertical only) (all browsers) or do I need to pad that page with <br />'s? Thanks Quote Link to comment Share on other sites More sharing options...
F1Fan Posted September 18, 2008 Share Posted September 18, 2008 I don't think you can remove the scrollbars from a regular page. You can do it with window.open in Javascript, and you can change the size and color of the scrollbars, but not remove them, as far as I know. You can also control them in frames. So, you could wrap your whole page in a frame and do noframes on it. Quote Link to comment Share on other sites More sharing options...
AV1611 Posted September 18, 2008 Author Share Posted September 18, 2008 LOL I wanted the opposite... I want scrollbar on right all the time Quote Link to comment Share on other sites More sharing options...
F1Fan Posted September 18, 2008 Share Posted September 18, 2008 LOL. I think you can do the same thing. On all of those, you can specify no scrollbars, auto scrollbars, or always scrollbars. I thought of another way though. Add a <div> around your whole page, like this: <body style="margin:0px;"> <div style="width:100%;height:100%;overflow:scroll"> --- Your page here --- </div> </body> Quote Link to comment Share on other sites More sharing options...
F1Fan Posted September 18, 2008 Share Posted September 18, 2008 Um, sorry, just had a stupid moment. You can just add that overflow property to the body and be done. That's it. Duh to me. <body style="overflow:scroll;"> --- Your page here --- </body> Quote Link to comment Share on other sites More sharing options...
AV1611 Posted September 18, 2008 Author Share Posted September 18, 2008 I thinking the answer is no I want vertical (only) scrollbar all the time but never a horizontal. Quote Link to comment Share on other sites More sharing options...
F1Fan Posted September 18, 2008 Share Posted September 18, 2008 overflow-y: scroll; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.