Web Development with jQuery®

(Elliott) #1

(^268) ❘ CHAPTER 10 SCROLLBARS









Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.




Current Vertical Scrollbar Position:

0



Current Horizontal Scrollbar Position:

0



The following CSS sets up the styling for the scrollbar example:
html,
body {
width: 100%;
height: 100%;
}
body {
font: 12px "Lucida Grande", Arial, sans-serif;
background: rgb(189, 189, 189);
color: rgb(50, 50, 50);
margin: 0 ;
padding: 0 ;
}
div#container {
border: 1px solid rgb(64, 64, 64);
background: #fff;
padding: 5px;
margin: 0 20px 0 20px;
width: 200px;
height: 100px;
overflow: auto;
[http://www.it-ebooks.info](http://www.it-ebooks.info)
Free download pdf