Welcome to Dream.In.Code
Become an Expert!

Join 137,384 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,122 people online right now. Registration is fast and FREE... Join Now!




Vertical Scrollbar

2 Pages V  1 2 >  
Reply to this topicStart new topic

Vertical Scrollbar, turn it off??

caffinephreak
19 Jun, 2003 - 06:34 PM
Post #1

D.I.C Head
**

Joined: 8 Jul, 2002
Posts: 229

Is there a simple way to always have the horiz. scrollbar on whilst always having the vert. scrollbar off in a div tag?? I'm workin on a site w/ my roomate and the sometimes there/sometimes not scrollbar is messing up alignment, so we the h sb on and the v sb off...thanks!!
User is offlineProfile CardPM
+Quote Post

codeman
RE: Vertical Scrollbar
19 Jun, 2003 - 07:32 PM
Post #2

w3c fanatic
*****

Joined: 12 Aug, 2001
Posts: 1,190

<div style="overflow: scroll;"></div>
User is offlineProfile CardPM
+Quote Post

caffinephreak
RE: Vertical Scrollbar
19 Jun, 2003 - 08:55 PM
Post #3

D.I.C Head
**

Joined: 8 Jul, 2002
Posts: 229

yeah, obviously, thats how we have a scrolling div, sorry to be a jerk, but the question is how do I remove the bottom scrollbar?
User is offlineProfile CardPM
+Quote Post

codeman
RE: Vertical Scrollbar
19 Jun, 2003 - 08:57 PM
Post #4

w3c fanatic
*****

Joined: 12 Aug, 2001
Posts: 1,190

<div style="overflow: auto;"></div>

That should give you just the traditional vertical scrollbar.
User is offlineProfile CardPM
+Quote Post

caffinephreak
RE: Vertical Scrollbar
19 Jun, 2003 - 09:26 PM
Post #5

D.I.C Head
**

Joined: 8 Jul, 2002
Posts: 229

sorry if my question wasn't clear, but we want the side scrollbar ALWAYS on, and the bottom scrollbar ALWAYS off....
CODE
<div style='width:314; height:338; overflow: scroll;'>

but i need somehting that will turn off or hide or whatever for the bottom scrollbar...
User is offlineProfile CardPM
+Quote Post

klewlis
RE: Vertical Scrollbar
20 Jun, 2003 - 06:57 AM
Post #6

cur tu me vexas?
*****

Joined: 9 Nov, 2001
Posts: 1,723

why do you have a bottom scrollbar? is your content too wide?
User is offlineProfile CardPM
+Quote Post

codeman
RE: Vertical Scrollbar
20 Jun, 2003 - 03:43 PM
Post #7

w3c fanatic
*****

Joined: 12 Aug, 2001
Posts: 1,190

Do you want the vertical scrollbar ALWAYS visible? Why?
User is offlineProfile CardPM
+Quote Post

caffinephreak
RE: Vertical Scrollbar
21 Jun, 2003 - 10:10 PM
Post #8

D.I.C Head
**

Joined: 8 Jul, 2002
Posts: 229

i'm not that good at design, and don't know all the terms or whatever, so i use side and bottom cuz i don't know to which the vert and horiz mean...I have the bottom scrollbar because I have overflow:auto in the class for the div...it puts a side and a bottom scrollbar on there. I want to know if there is anyway to have JUST the side scrollbar ALWAYS on...?? want it always on for alignment purposes...
User is offlineProfile CardPM
+Quote Post

klewlis
RE: Vertical Scrollbar
22 Jun, 2003 - 08:19 AM
Post #9

cur tu me vexas?
*****

Joined: 9 Nov, 2001
Posts: 1,723

well it will always be on as long as your content is longer than the given space... and the only reason you should have a bottom bar is if your content is too wide for the space....
User is offlineProfile CardPM
+Quote Post

caffinephreak
RE: Vertical Scrollbar
22 Jun, 2003 - 05:38 PM
Post #10

D.I.C Head
**

Joined: 8 Jul, 2002
Posts: 229

k...I don't know if I am making this clear. I have overflow:scroll...so that both scrollbars are ALWAYS on...we want ONLY the side scrollbar to be ALWAYS on and the bottom scrollbar to be ALWAYS off...
User is offlineProfile CardPM
+Quote Post

illustrain
RE: Vertical Scrollbar
22 Jun, 2003 - 06:13 PM
Post #11

Voltron's Daddy
Group Icon

Joined: 27 Apr, 2001
Posts: 1,576



Thanked: 3 times
Dream Kudos: 13
My Contributions
try this:

CODE
<div style="width:100px;height:100px;overflow-x:auto;overflow-y:hidden;background-color:#000000">


Just put in the values you want it to be. Its what I use on my blog, I"m not exactly sure what you want but I think that should work.
User is offlineProfile CardPM
+Quote Post

caffinephreak
RE: Vertical Scrollbar
22 Jun, 2003 - 10:13 PM
Post #12

D.I.C Head
**

Joined: 8 Jul, 2002
Posts: 229

QUOTE(illustrain @ Jun 22 2003, 08:13 PM)
try this:

CODE
<div style="width:100px;height:100px;overflow-x:auto;overflow-y:hidden;background-color:#000000">


Just put in the values you want it to be. Its what I use on my blog, I"m not exactly sure what you want but I think that should work.

THANK YOU THANK YOU THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
man, if I didn't have a girlfriend, I'd SOO kiss you right now wink2.gif

thanks!!
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 12/5/08 02:02AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month