Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

fixed and scrolling elements on a webpage?

I'm designing a webpage, where I want everything fixed except one block of text.

basically the same idea as a one page website with a text box. but rather than having an annoying little text box with its own scroll bar, i want the browser's scroll bar to control the text.

is this possible?

one of the problems is that i need the text to cut off at the top of its div as you scroll, rather than at the top of the browser window, because otherwise it would cover over an image.

any help would be great!

thanks!

1 Answer

Relevance
  • Anonymous
    10 years ago
    Favorite Answer

    Nothing would cover the image if you coded the page correctly. You only get a browser scrollbar when your page content is too large for the browser's viewport size being used. Proper set up of the div container(s) and use of the CSS property, overflow: auto; , will take care of overflow problems unless you want to hide the overflow content making it not appear. For this, use: overflow: hidden;

    Ron

Still have questions? Get your answers by asking now.