Solved

prevent scroll bar, not content

Posted on 2007-12-04
2
737 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

751 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