Solved

prevent scroll bar, not content

Posted on 2007-12-04
2
719 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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
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 customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

763 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

10 Experts available now in Live!

Get 1:1 Help Now