www.webdeveloper.com
Results 1 to 6 of 6

Thread: Only scroll content???

  1. #1
    Join Date
    May 2007
    Posts
    14

    Only scroll content???

    I want the scrollbar to remain on the far right of the browser. But when scrolled i only want the content (which is in one single content div) to move...

    Is this even possible...

    Please help

  2. #2
    Join Date
    May 2007
    Location
    Cleveland, OH
    Posts
    1,403
    Code:
    #contentDiv {
        position:fixed;
    }

  3. #3
    Join Date
    May 2007
    Posts
    14
    Thanx...

    But that makes it everything else scroll while the content stays still..

    I want the content to scroll while everything else stays still...

    The background is easy to keep fixed so i've done that...now its just the header and nav...and if i add the property u mentioned to them then they get all weird and change sizes...

  4. #4
    Join Date
    May 2007
    Posts
    14
    dont worry about the last post...

    New problem: When i enter the value for "left" and "top".... the "top" is fine because it remains consistent. But when u resize the window the 'left' position will stay the same....i hope this makes sense...

    basically what i am asking is: how do i make it so instead of the "left" vallue being relative to the left edge of the browser can i make it relative to the left edge of its containing div????

  5. #5
    Join Date
    May 2007
    Posts
    14
    Have a look::: and u'll see what i mean CLICK HERE

  6. #6
    Join Date
    May 2007
    Location
    Cleveland, OH
    Posts
    1,403
    The best bet is to probably use % to define where you want it on the page, or put it in a "wrapper" div that bumps it out to the spot you want it. No matter what you do, it will probably be in a slightly different spot on all the different browsers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles