1

I'm new to css, the code I am using for the overflow property doesn't appear to be working:

div.hidden {
  background-color: #00FF00;
  width: 1000px;
  height: 1000px;
  overflow: hide;
}
3
  • 1
    jigsaw.w3.org/css-validator Commented Sep 8, 2015 at 15:37
  • 2
    you made a syntax error, its hidden not hide. Commented Sep 8, 2015 at 15:38
  • 6
    Just curious to know how this thread attracted so many upvotes and favorites. Commented Sep 8, 2015 at 15:57

3 Answers 3

4

https://developer.mozilla.org/en-US/docs/Web/CSS/overflow

overflow: hidden;

The possible values

 hidden // not scroll, invisible content
 visible // not scroll, visible content
 scroll // scroll ever
 auto // scroll only if it's neccesary
Sign up to request clarification or add additional context in comments.

Comments

1

What you want is:

overflow: hidden;

Easy mistake, keep it up you'll get it!

Comments

1

Try This Code

 div.hidden {
            background-color: #00FF00;
            width: 1000px;
            height: 1000px;
            overflow: hidden;
        }

Comments

Your Answer

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