Discussion Locked

website scroll bars

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

im making a simple website with frames. When the page is short enough to fit on the one page there are no scroll bars visible on the main page. But when the page gets longer the horizontal scroll bar pops up along with the vertical scroll bar even though there is no need for the horizontal scroll bar. How do i get rid of the horizontal scroll bar? I don't want to turn it off altogether just in case people would like to view my webpage in a smaller window.
Thanks in advance.

5 replies

by mshavrov

It's more design question. If your page is wider than user's screen, user should scroll horizontaly to view whole page. You can disable scrolling by changing frame properties, but what will happen if user will loose part of information or picture and will be unable to view what's there???

In general, most pages are done to fit to specific width (for example, this page). Horizontal scrolling bar is always sign of pour design. Reduce your picture and everything will be fine.

by phyl

Thanks but the answer hasnt helped. My content is already small in width and i have tested it with extremely skinny pages that are 330px wide. The scrolling bars are currently set at "auto". The horizontal bars are still appearing when the vertical bar appears.

by network_driven

The client screen size in pixels could dictate if a horizontal scroll bar is used. One Choice would be to create java scripting code that checks for graphics settings for each user that view's your page, or change your columns and rows to percentage example: cols="50%", rows="50%" or cols="50%,50%" rows="40%,60%". And it has been faster for me to do percentages VS. code writing
and which makes it easier for reading my own code.

This discussion is closed to new replies.