I have a div thats about 200px wide and I want it to have horizontal scrollbars if the text needs more space than 200px. Below is the css properties that I am using, but it shows vertical scrollbar.
DIV.scroll{
height: 20px;
width: 200px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
}
How can I have it show horizontal scrollbar rather than vertical?
Question
amrinders87
I have a div thats about 200px wide and I want it to have horizontal scrollbars if the text needs more space than 200px. Below is the css properties that I am using, but it shows vertical scrollbar.
DIV.scroll{
height: 20px;
width: 200px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
}
How can I have it show horizontal scrollbar rather than vertical?
Thanks
Amrinder
Link to comment
Share on other sites
3 answers to this question
Recommended Posts