Log in

View Full Version : Scrolling with browser Scrollbar?



behole
03-22-2010, 04:16 PM
This may have been answered but i couldn't find it through search, at least not what i thought was the answer. It also may be so simple that it has never been asked and i am just complicating it.
I have mostly a flash background so html is not second nature to me. that being said...
i want to have a simple set up of a fixed back ground image and a context box centered in that back ground that is scrollable via the browsers scroll bar. is this just a <div> situation or do i need to make a table? Sorry, i am going in reverse as far as learning html after i have learned other things. thanks for the help, AS USUAL!
Josh

djr33
03-22-2010, 06:31 PM
I think you are thinking about the situation backwards: it's not possible to "attach" a div to the scrollbar-- just make it attached by default.
The complex part is getting the OTHER elements to stay where they are.

So what you need is CSS positioning that will force the 'background' and other parts of the page to not move.

The real question is exactly what elements you want to keep from moving then someone can help you figure out the CSS. It may be simple or if you end up with a complex layout it may require some Javascript to help.