SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrollable area and scrollbar custom height

    Hi everyone,

    My friend and i are searching for a solution to have a scrollable area together with a scrollbar were BOTH heights can be set. This will prevent the scrollable content to come close to the edges of the table. We want the content to dissapear sooner.

    We've tried everything possible in HTML and CSS but without any luck. I think this can be fixed with JS or with Flash. Flash is not an option and we neither have a lot of skills in JS.

    Below you'll find a sample to explain what we mean.



    Does anyone have a suggestion?

  2. #2
    SitePoint Evangelist hexburner's Avatar
    Join Date
    Jan 2007
    Location
    Belgium
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Something like this maybe?

    Code CSS:
     .your-area {
        padding: 5px 0px;
        overflow: auto;
        height: 300px;
    }
    FOR SALE: 1 set of morals, never used, will sell cheap

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hexburner > That doesn't work because the scrollbar will use the same padding.


Bookmarks

Posting Permissions

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