0

i've seen a lot of question about the scrollbar at top of an div. But is it also possible to have the scrollbar at top of your page(body). And if it's possible, how?

much thanks!

user3232772
  • 267
  • 1
  • 4
  • 7
  • 1
    One way is to use custom scroll bars. Technically you can place them wherever you want. However, users are used to see vertical scroll bar on the right and horizontal one at the bottom of the content. Better you avoid surprises! – RaviH Jan 29 '14 at 14:48
  • Refresh the page, the scrollbar is at the top of the document. You're welcome. If you need an answer, be clear please. – enguerranws Jan 29 '14 at 14:48
  • @enguerranws your comment isn't nearly as clear as the question. – Mr Lister Jan 29 '14 at 14:53
  • Feel free to explain what he tried to say. – enguerranws Jan 29 '14 at 15:40
  • @enguerranws I don't know how to reword "is it also possible to have the scrollbar at top of your page(body)." so that it's clearer. Possibly you're confusing the words "scrollbar" and "thumb". – Mr Lister Jan 30 '14 at 06:31
  • @MrLister Maybe it's clearer for you, not for me. I don't even know why that post hasn't been closed: no context, no code, unclear. – enguerranws Jan 30 '14 at 09:37

2 Answers2

0

The position (and, indeed, styling) of the scrollbars for the viewport is a matter for the browser, and can't be controlled with HTML.

However, it might be better to just enclose your whole page in a div.

Jeremy Smyth
  • 23,270
  • 2
  • 52
  • 65
kmoe
  • 1,963
  • 2
  • 15
  • 27
0

The browser displays scrollbars when your browser window is small than the size of web-page.It will happen only when you specify the size of webpage or div in pixels.

It is possible to place the scrollbar at the top.

Follow this link for demo

Able Johnson
  • 551
  • 7
  • 29