2 replies [Last post]
ghousia
Offline
newbie
delhi
Last seen: 10 years 5 weeks ago
delhi
Joined: 2008-02-27
Posts: 5
Points: 0

I need to add horizontal Scroll bar in div, but no vertical scroll bar.In my style sheet i used

.scroll-div{
overflow:auto;
overflow-x:scroll;
overflow-y:hidden;
font-size:11px;
font-weight:bold;
color:#245F9A;
float:left;
width:99%;
height: auto;
margin:5px 0px;
}
but it is not working. plz tell me where i make mistake in my coding

Thanx

gujjar
Offline
newbie
Sweden
Last seen: 10 years 38 weeks ago
Sweden
Joined: 2008-06-24
Posts: 1
Points: 0

remove the overflow:auto;

remove the

overflow:auto;

ghousia
Offline
newbie
delhi
Last seen: 10 years 5 weeks ago
delhi
Joined: 2008-02-27
Posts: 5
Points: 0

hi again

hi Gujjar;

First of all i thanx for ur help;
I tried with ur suggestion but my prob is still,
acutally its showing scroll bar but not highlighting, when i add text without giving any space between two word, then it works fine otherwise its not working properly, should i need to include any java script? or would it be possible through css?

Plz help me.

Regards:
Ghousia