473,322 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

hiding vorizontal scrollbar in div layer

I have a div layer that will contain a variable list of information.
When it overflows i want it to scroll but only vertically.

This is the layers definition so far...

#remoteScreen
{
z-index: 4;
position: absolute;
left: 14;
top: 46;
width: 171;
height: 153;
background-color: Black;
overflow: scroll;
}

it shows the scroll bars but in both directions... as i dont want it to
ever scroll horizontally i dont want to waste the space.

Is there any way of only showing the vertical scroll bar???

If its of any help this will only ever be run in IE so if its an evil IE
trick i dont mind hearing it ;)

Thanks alot

Mike

Jul 20 '05 #1
3 12070
Michael Ditum wrote:
This is the layers definition so far...

#remoteScreen
{
z-index: 4;
position: absolute;
left: 14;
top: 46;
width: 171;
height: 153;
background-color: Black;
overflow: scroll;
}

it shows the scroll bars but in both directions... as i dont want it to
ever scroll horizontally i dont want to waste the space.
That is because you used overflow:scroll;
Is there any way of only showing the vertical scroll bar???
If the content fits horizontally: overflow:auto; will do the job.
If its of any help this will only ever be run in IE so if its an evil IE
trick i dont mind hearing it ;)
It is perfectly standard compliant. You could have looked in the
specifications.
Thanks alot
np
Mike

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #2
Michael Ditum wrote:
#remoteScreen
{
z-index: 4;
position: absolute;
left: 14;
top: 46;
width: 171;
height: 153;
background-color: Black;
overflow: scroll;
}


Btw, your left, top, width and height values must have a unit. There is
no default unit in CSS.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)

Jul 20 '05 #3
Quoth the raven named Johannes Koch:
Michael Ditum wrote:
#remoteScreen
{
z-index: 4;
position: absolute;
left: 14;
top: 46;
width: 171;
height: 153;
background-color: Black;
overflow: scroll;
}

Btw, your left, top, width and height values must have a unit. There is
no default unit in CSS.


...and this will be invisible in my browser where the default text
color is black. Black on black is very hard to read.

Hint: when assigning a color /or/ a background-color, always specify
both. { color: white }

Assign your left and top with either px or em, but assign the width
and height with em, so the div can grow as font size is increased.

--
-bts
-This space intentionally left blank.

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Fabian | last post by:
Is there a way to hiode the horizontal (but NOT the vertical) scrollbar? -- -- Fabian Visit my website often and for long periods! http://www.lajzar.co.uk
1
by: Jaz | last post by:
I'm writing a page, and in IE the vertical scrollbar was missing. So after mega futzing I finally realized that the scrollbar was pushed off the right side of the page out of view. When I decreased...
1
by: Jason & Juli Cook | last post by:
I have a layer containing a table. The layer is inside a centered containing table. If the layer is hidden, I want the form (surrounding table) to collapse. I want to toggle this effect with a...
5
by: jvb | last post by:
I hope this is the correct place to ask this question. If not, would some kind person tell me where I should? In IE, one can use the javascript code, "document.body.scroll='yes/no'" to dynamically...
1
by: Dan Neely | last post by:
I want to have my textbox display a scrollbar if there is more text than will fit, but to make it invisible if it will all fit. Is this possible? The default behavior if all the text fits is a...
0
by: Chukkalove | last post by:
We're using touch screens for our application and the default tiny windows scrollbar doesnt respond well. So we've added up/down buttons to the form to scroll through the options. The forms are...
9
by: dd | last post by:
Does anyone have a cross-browser solution for hiding scrollbars and/or disabling scroll for the whole page? When the user clicks something, I want to display a DIV that fills the whole client...
1
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.