Click here to Skip to main content
15,609,550 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I try to minimize my window of web page, the horizontal scrollbar is not working but vertical scrollBar is working properly.


how can I enable the horizontal scroll bar?

This is my code
<body style="overflow:auto">
Updated 3-Jan-11 7:23am

A horizontal scroll bar only appears in a webpage if it is wider than the page. If you need a horizontal scroll add an element that has a width bigger than %100.
Share this answer
Take a look [here].

Fixed link.
Share this answer
fjdiewornncalwe 3-Jan-11 21:20pm    
How did you get a 5 vote for this. You are linking to this same question... Too funny. 4-Jan-11 1:54am    
Need to check... you linked the same page.
Ankur\m/ 4-Jan-11 4:58am    
And I fixed the vote. :)
just add width attribute in your style tag.
Share this answer
Ankur\m/ 4-Jan-11 2:31am    
That will make the page shrink to half. :|

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900