views:

12

answers:

1

I have a div with size x=540px y=600px

I want to hidden horizontal scroll bar even if text is bigger than x size.

How can i hidden just horizontal scroll bar?

+1  A: 

use overflow-x

<div class="MyDivClass"></div>

CSS:

.MyDivClass {
    height: 600px;
    width: 540px;
    overflow-x: hidden;
}

if you also want to hide the vertical use overflow-y: hidden; or for both just overflow: hidden;

rob waminal