PDA

View Full Version : Scrollbars


NathaliaMota
03-05-2003, 04:14 AM
How can I set up my HTML page not to scroll horizontaly? (I don't want to have a scrollbar on that direction.) Would I have to use frames to do that?

meow
03-05-2003, 04:53 AM
No, you just have to restrain from using too big images and/or absolute sizes for tables or whatever tools you use for layout.

Let it flow! :)
http://www.westciv.com.au/style_master/house/good_oil/not_paper/

Quiet Storm
03-06-2003, 12:26 AM
I agree, just don't make the page too wide.


But if you must: :rolleyes:

<style>
overflow-x:hidden;
</style>

GoHF
03-06-2003, 01:23 PM
Using width=100% all the way is a nice option.

If you see there is no way to keep your page within the window boundaries, here's the IE only approach

ex.: <body style="overflow-x: hidden; overflow-y: auto">...</body>

This will disable horizontal scrolling, and the vertical scrollbar will only appear when the content gets too tall =)

Another approach is using the zoom css property, but then again, that's a whole lot more trouble. Just follow the previous advices, keep it small ;)