Results 1 to 2 of 2

Thread: Makeing a <DIV> scrollable??

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    Makeing a <DIV> scrollable??

    How can I make a div scrollable???

    I want it to have scrollbars if the content doesnt fit in the specified size of the div...

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    The CSS overflow attribute does it.
    Code:
    <div style="width: 150px; height: 100px; overflow: scroll; color: red; background: gray;">
    	<p>The quick brown fox jumped over the lazy dog.</p>
    	<p>The quick brown fox jumped over the lazy dog.</p>
    	<p>The quick brown fox jumped over the lazy dog.</p>
    </div>
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width