Jump to content

Scrolling through a single block


ZeroShade

Recommended Posts

I have my page set up so that everything covers the page and there is no scrollbar as of yet. There is one box that will hold all the content that the page will have. Because I don't want the page to actually scroll down because the content block is set to an absolute position with width and height already set, how can I have a scrollbar that will only scroll through the one block of content and if possible, keeping the scrollbar on the side of the page where it should be and not right beside the block?

Link to comment
Share on other sites

You can use the overflow CSS property to set the block to scroll. But the scrollbar is always attached to the block, if you want the scrollbar to appear on the right side of the screen, then stretch the block that far. But the scrollbar is always attached to what it scrolls, you can't just move it somewhere else. At least not in HTML.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...