Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    197
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to make scrolling text under header?

    In the HTML below I use divs contentleft, contentcenter and contentright. Because the text under the Header Contentright is so long I would like to make a scrollbar for the text of contentrigth but withoud the Header contentrigth, so that you alwaus see the header when scrolling the text. Is this possible with these content-codes?

    This is the HTML I have so far:
    <head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <meta name="generator" content="Adobe GoLive 4">
    <title>glish.com : CSS layout techniques : static width and centered</title>
    <style type="text/css"><!--
    #contentcenter { background-color: #eee; float: left; padding: 0px; width: 300px }
    #contentheader { background-color: #fff }
    #contentheader h1 { font-size: 14px; margin: 0px; padding: 16px }
    #contentleft { background-color: #fff; float: left; padding: 0px; width: 175px }
    #contentright { background-color: #fff; float: left; padding: 0px; width: 175px }
    #contentright p { font-size: 14px }
    #toptext { text-align: left; margin-top: 10px; margin-right: auto; margin-left: auto; padding: 0px; width: 650px }
    body { text-align: center }
    h1 { font-size: 14px; margin: 0px 10px 10px; padding-top: 10px }
    p { margin: 0px 10px 10px }-->
    </style>
    </head>

    <body>
    <div id="toptext">
    <div id="contentheader">
    <h1><a href="home.asp">Top Text</a>, page with three columns: left, centered, right.</h1>
    </div>
    <div id="contentleft">
    <h1>Header Contentleft</h1>
    <p class="greek">This is the left column</p>
    </div>
    <div id="contentcenter">
    <h1>Header Contentcenter</h1>
    <p>This is the center column</p>
    </div>
    <div id="contentright">
    <h1>Header Contentright</h1>
    <p>This is the right column. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla blaBla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla. Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla Bla bla bla bla bla</p>
    </div>
    <p><br clear="all">
    <!-- without this little <br /> NS6 and IE5PC do not stretch the toptext div down to encopass the content DIVs -->
    </div>
    </body>

    </html>

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    865
    Thanks
    7
    Thanked 29 Times in 28 Posts
    Hi there.

    Here is a good example from colly logic.

    All the best.


  •  

    Posting Permissions

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