Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I add scroll bars in a div. I tried with the following code.

HTML
<div id="screenDiv" style="removed: relative; width: 100; height:100; overflow-x: scroll overflow-y: scroll display:block"> </div>


I am neither getting the scroll bar nor fixing the size of the div as 100,100. Please help to fix this.

Thilaga.
Posted
Updated 20-Aug-11 7:27am
v2

1 solution

You should put semicolons(;) at end of every attribute.

Try this
HTML
<div id="screenDiv" style="width: 100; height:100; overflow: scroll; display:block;"></div>
 
Share this answer
 

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