Solved

prevent scroll bar, not content

Posted on 2007-12-04
2
728 Views
Last Modified: 2012-06-27
Is there a way to prevent a horizontal scroll bar from appearing, without making the content hidden?
0
Comment
Question by:n00b0101
  • 2
2 Comments
 
LVL 28

Expert Comment

by:TName
ID: 20402786
And what exactly should happen to the content?
The "overflow" property can be set to visible, hidden, scroll or auto. See descriptions here:
    http://www.w3schools.com/css/pr_pos_overflow.asp
You don't want scroll or hidden. What about visible?

You could also try to not let the content expand horizontally...  

Also, are you talking about the body of a document or about an element like a div?
0
 
LVL 28

Accepted Solution

by:
TName earned 500 total points
ID: 20402867
Also, what kind of content (can it be easily wrapped so that it expands vertically instead of horizontally?). An example maybe?

And you can set the overflow-x property (instead of "overflow") if you want to only address the horizontal overflow behaviour of an element.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question