views:

43

answers:

2

Hai,

I have a div with fixed height and width, lets say i have width:400px; and height:200px; for a div.

How to bring the horizontal scroll bar for this div

+2  A: 

By giving it the

overflow: auto

CSS property and filling it with content that is wider, but not taller, than the DIV itself.

Pekka
+2  A: 

type

div {
overflow-x:auto; /* Horizontal scroll  */ 
overflow-y:auto; /* Vertical scroll   */
}

or use

div {
overflow:auto; /* For Both */
}
RSK