Page 1 of 1

Horizontal Bar on div

Posted: Sat May 13, 2006 8:54 am
by phppage
Please could anyboady advise me on how to prevent the a horizontal scroll bar from appearing when using scroll on the overflow propertie of a CSS sheet. I just want the vertical bar only.

Code: Select all

#logtable {
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	visibility: visible;
	width: 100%;
	height: 400px;
	overflow: scroll;
	padding: 0px;
	background-color: #ffffff;
	border: 2px solid #ffffff;
}
Many Thanks


Ben

Posted: Sat May 13, 2006 9:07 am
by $phpNut
Try:

Code: Select all

overflow: auto;
instead of

Code: Select all

overflow: scroll;
it won't show it uinless its needed but it won't have the horizontal bar (touch wood :D).

There are compatiablility problems though http://www.quirksmode.org/css/overflow.html

Posted: Sat May 13, 2006 9:19 am
by phppage
$phpNut wrote:Try:

Code: Select all

overflow: auto;
instead of

Code: Select all

overflow: scroll;
it won't show it uinless its needed but it won't have the horizontal bar (touch wood :D).

There are compatiablility problems though http://www.quirksmode.org/css/overflow.html


Works a treat, your a star.

Many Thanks