How to make the div become a container with scroll bar?

This is the simple code:

<div id="container">            

    <div id = "information">


When I change the "information" to width 1000, and container width 100, the "information" become very long, but I would like to let the information div inside the div...I means, I want the container have a scroll bar, if the information's width is longer than the container. How can I do so? Thank you.


#container {
    overflow: auto;

Need Your Help

Add folder files to listbox by LINQ

c# linq file

I use the below code to get files with different extensions in the folder by LINQ, but no file is found.

Adding controls to dynamics crm 2011 dynamically

forms controls crm microsoft-dynamics

I want to keep a list of records with multiple fields, and enter them via one form, that shows the existing records as a list made of different text boxes. And a "new" button on the same form that'll

sql server, composite keys - ignoring duplicate

sql sql-server composite-key

Is there a way to prevent sql from throwing an error when I try to save a record that already exists. I've got a composite key table for a many-to-many relationship that has only the two values, wh...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.