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

This is the simple code:

<div id="container">            

    <div id = "information">
    </div>

</div>   

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.

Answers


#container {
    overflow: auto;
}

Need Your Help

Qt being now released under LGPL, would you recommend it over wxWidgets?

python qt wxpython wxwidgets

I am quite a heavy user of wxWidgets, partly because of licensing reasons.

iOS switch rootViewController not working

ios uisplitviewcontroller uistoryboard rootview

I have a login view that checks to see if there are default settings, then syncs data. If there are no default settings, the view waits for the user to login. if there are settings and the data syncs

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.