麥克斯做個不宅的工程師

Maxi’s idiotic programming.

Scroll bar using CSS

If you have content that is too long or too wide and
you want to add scroll bar to it, here is what to do.

for example:

<div id=”wrapper”>
<div id=”content”>some content</div>
</div>

If your content width/height is larger than its wrapper,

add overflow:auto to “wrapper” CSS style.

May 28, 2008 , Wednesday - Posted by maxi326 | Web | , , | No Comments Yet

No comments yet.

Leave a comment

You must be logged in to post a comment.