Solved

prevent scroll bar, not content

Posted on 2007-12-04
2
725 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now