View Single Post
Old 12-19-2003   #5 (permalink)
Young Spartan
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
Digital: I figured that'd come as common sense, hehe.

malboroman:
Create a file named style.css and make it contain:

div.scroll {overflow: auto;}

Then in the header of your HTML page put:
<link rel="stylesheet" type="text/css" href="style.css" />

That is assuming the CSS file is in the same directory as the HTML file, change the href="" attribute for others.

Now to insert the div in your page just put:

<div class="scroll">Content Here</div>

and as Digital said you will need width and height attributes, you can do this two ways... here they are:

div.scroll {overflow: auto; width: ###; height: ###;}

or

<div class="scroll" width="###" height="###">Content Here</div>

I recommend you use CSS to do it, because its the valid W3C standard code, but either will work.. for now.

Hope that helps.
Young Spartan is offline