# Can't able to set different overflow style setting for horizontal and vertical scrolling.

526 2 2 9

We can set the grid body's overflow behaviour as shown below using style:

div.z-grid-body {overflow: auto;}

Overflow attribute can have any one of the three values such as, auto, hidden or scroll.

When we set any one of the option, then it is applied to both horizontal as well as vertical.
But, is there any way to set different overflow settings for horizontal and vertical individually?

In my case, I want to have vertical scrollbar's overflow setting as scroll. But, I want to set horizontal scrollbar's overflow setting as hidden.

Any suggestions?

Thanks.

delete retag edit

526 2 2 9

Solution is:

div.z-grid-body {overflow-x: hidden; overflow-y: scroll;}

Thank you, Uday.

[hide preview]