www.webdeveloper.com
Results 1 to 2 of 2

Thread: Getting browsers scrollbrar to scroll only the content

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    1

    Getting browsers scrollbrar to scroll only the content

    I have this horizontal menu on the top of the page, and I want it to stay there, so the user doesn't have to come up on the page each time he wants to use it. So I've put it into a div with fixed position. But when I scroll the content down, it will show behind the menu. I can cover the div with images and hide the content behind, but that's not what I really want.

    So here what's I need help to do: I want the browser's scroll bar to scroll the content in the content div, but not to scroll the page per se. Is this doable? Can I do it with pure CSS? If you know a Javascript way it's ok too.

  2. #2
    Join Date
    Aug 2009
    Posts
    31
    A bit of googling got me this:
    http://tagsoup.com/cookbook/css/fixed/top/


    Hope it helps.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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