2

How can I prevent the content within horizontal div that overflows from showing?

I have this css:

#fixed_menu_div {
    width:200px;
    height:80%;
    float:left;
    left:0;
    overflow-x:none;
    overflow-y:scroll;
    position:fixed;
}

The div is displayed on the left of the page(s).

It is meant to hide the horizontal scrollbar:

overflow-x:none;

but its still showing. I want to keep the

overflow-y:scroll;

and hide the horizontal scrollbar.

1
  • 6
    Try overflow-x: hidden; Commented Oct 24, 2013 at 22:59

1 Answer 1

5

none in overflow ? I think this is not correct and I use net beans dont suggest me "none";

use one of this :

auto
hidden
no-content
no-display
scroll 
visible 

for hide use hidden . This tow reference for anyone need to study about overflow: MDN and w3school

Sign up to request clarification or add additional context in comments.

1 Comment

Can you add the reference to your answer for future readers? Also please use @ryangates in the comments so that I know you answered my question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.