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 3 of 3
  1. #1
    jj1
    jj1 is offline
    Senior Member
    Join Date
    Oct 2008
    Posts
    319
    Member #
    17546
    Is there an easy way of putting a scroll bar within a section of your site so that you can have 2 columns:

    left column = fixed length image
    right column = scroll bar to allow for text being longer than the image

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,786
    Member #
    5580
    Liked
    723 times
    Using CSS, define the dimensions of your <div> areas, and use:
    overflow: auto;

    That will automatically display a scroll bar if it needs to have one.

    I really suggest you find a way to display your content without scrollbar(s), but I realize in some cases, that's not possible. Any time you add navigation that makes people work harder (like scrollbars), you'll discover that users won't use them ... they'll most likely just leave the page. I know this might sound condescending, but assume every user is lazy. Design your site so users don't have to think about anything. Scrollbars require thinking and skill.


  4. #3
    jj1
    jj1 is offline
    Senior Member
    Join Date
    Oct 2008
    Posts
    319
    Member #
    17546
    Many thanks mlseim - I hadn't realised it was that easy.

    Actually, I probably agree with your comments about scroll bars - especially for long pages. However, I'm about to do a site where the customer wants to have minimal info and a very clean layout - for the odd page where the info might overflow by a line or two the scroll bar could keep the text on the right hand column the same height as the image ont he left hand column.


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 11:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com