This is kind of a really nooby question, and I think I already know the answer, but:
Can you add Scrollbars to the side of a <div>?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CSS
jsFiddle.
You give an explicit height so the
divdoesn’t expand to fit its content.If you only want horizontal or vertical scrolling, use
overflow-xandoverflow-yrespectively.If down the track you want the extra content to be hidden, use
overflow: hidden.The default for
overflowproperty isvisible.