Posts: 1,335
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Scrolling boxes are usually made by setting a height on a <div>, then setting the overflow to auto in the CSS like this:
HTML Code:
<head>
<style type="text/css">
#box {
height: 200px;
overflow: auto;
}
</style>
</head>
<body>
<div id="box">
<p>Some nonsense you want to talk about</p>
</div>
Now, with a height of 200px, there will be no scrollbars, but if you add more text, once it "overflows", scroll bars will be added to allow for it. This is usually preferable to overflow:scroll;
__________________
<!--if a signature drops in the forest, and no one is there to see it, does it make a link?-->
Last edited by wayfarer07 : 08-21-2008 at 02:21 PM.
|