Horizontal Bar on div

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
phppage
Forum Contributor
Posts: 126
Joined: Mon Apr 24, 2006 1:47 pm
Location: West Yorkshire, UK

Horizontal Bar on div

Post 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
User avatar
$phpNut
Forum Commoner
Posts: 40
Joined: Tue May 09, 2006 5:13 pm

Post 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
User avatar
phppage
Forum Contributor
Posts: 126
Joined: Mon Apr 24, 2006 1:47 pm
Location: West Yorkshire, UK

Post 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
Post Reply