0

When page length is more then single page, scorll bar can be seen.

Is it possible to remove it for higher page size also? Page should be moved up down by pageup pagedown or arrow keys

user123
  • 5,269
  • 16
  • 73
  • 121
  • How would a user scroll the page on a device with no keyboard? – xxbbcc Jan 05 '14 at 06:00
  • 2
    The scrollbar tells the user there's more content to see. Why would you want to hide it? – Micah Henning Jan 05 '14 at 06:06
  • @MicahHenning: you point is correct. But looking at my page I found that preview of my page was changing in presence of scrollbar. Without SB it has better look. So just wanted to try it out – user123 Jan 05 '14 at 07:01
  • Can you provide a link to your page, or create a jsFiddle to illustrate your dilemma? Maybe there's another solution. – Micah Henning Jan 05 '14 at 17:19

1 Answers1

1

You can use css overflow property

body{
  overflow:hidden;
}

for vertical and horizontal scroll.

body{
  overflow-y:hidden;
}

for vertical scroll only.

Mardie
  • 1,663
  • 17
  • 27
  • This actually doesn't solve the problem because you won't be able to scroll the page. – Micah Henning Jan 05 '14 at 06:05
  • 2
    http://stackoverflow.com/questions/13317364/remove-scrollbar-but-not-scrolling-functionality – Mardie Jan 05 '14 at 06:12
  • But those are just hacks. Either you have to use browser-specific CSS properties to hide the scrollbars or give them transparent backgrounds colors, or you have to "push it out of view" using a wrapper element. – Micah Henning Jan 05 '14 at 06:21