Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    5
    Member #
    8967
    Hi everyone!

    I'm buggered by a problem showing up almost every time I start a new website: the goal is to put text which could be scrolled down between two borders, one up and one down the screen. For example, I could want my text to appear between Y=250 and Y=550, but even if scrolled down, that it deasappears if out of those borders.

    I could do this with frames I suppose, but there has to be another way, isn't there? :nervous:

    Thanx for your help
    °chuz°

  2.  

  3. #2
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    You can also do it with divs.

    Create a box with a height of 300, a fixed width and add this:
    overflow=scroll
    Shani

    I have an eye for detail like you'd never believe.

  4. #3
    Junior Member
    Join Date
    Feb 2005
    Posts
    5
    Member #
    8967
    Thanx man! You're saving my life! ... or almost
    I was despaired to get an answer on this one...

    I'm not that familiar with div's yet, but I'll find out.
    Thanx anyway!

    chuz.

  5. #4
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    I am no expert at divs and CSS, but I think you could create the style and apply it to your <td>.

    Do you know how to link a style sheet? If yes, put this in your style sheet. If not, you can embed the style in the html by putting this between <style>tags</style> within the <head> of your html</head>. Your code in the body would then be <td> <div class="content"> the stuff you want to scroll</div> </td>

    Code:
    .content{
    	height: 300px;
    	width: ???px;
    	overflow: scroll}
    While you're at it, you may as well format the
    - background
    - font-family
    - font-size
    - color
    - padding: TOPpx RIGHTpx BOTTOMpx LEFTpx;
    This will ensure your text does not go all the way to the ends.
    Shani

    I have an eye for detail like you'd never believe.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:36 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com