Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
aroundtheglobe25
Joined: Jan 19, 2005
# Posts: 6
|
Posted: 2005-Apr-07 09:41
Hi there,
Is there anyway of just having vertical scrollbars.
Thanks
|
 |
lizardz
Joined: Nov 12, 2004
# Posts: 1394
|
Posted: 2005-Apr-07 21:25
css:
overflow-x:auto;
overflow-y:none;
that's just for divs and other block type elements, although I think you can use that on body and html too, can't remember.
|
 |
JQ
Staff
Joined: Mar 11, 2001
# Posts: 2765
|
Posted: 2005-Apr-07 21:55
So, what you're saying is you want to avoid having a horizontal scrollbar?
The best way to do that is to use a percentage-based width. You can mix and match pixels and percentages, BTW. Say you have a three-column layout and the outer columns are each 150 pixels wide. The center column then gets 100% of everything that's left of the screen. But I recommend keeping it ~95% to accommodate the width of the vertical scroll bar. Then the layout will re-size automatically based on the viewer's resolution and monitor size.
Keep in mind, though, that you've used up 300 pixels in this example, so if you put any images in the center column that are wider than 500 pixels, it will stretch the width and you will have horizontal scroll on anything at 800x600 or less.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|