Below is the code I used to fix the scroll bars on the page. This makes the ribbon not fixed and will scroll out of view. This could be enough if you don't use the ribbon in your pages.
body { overflow: auto ! important; } body.v4master { height:inherit; width:inherit; overflow:visible!important; } body #s4-workspace { overflow-y:auto !important; overflow-x:auto !important; height:auto !important; }
If the ribbon absolutely must be at the top of the page. You can add this bit of code after the above code to properly affix the div to the top of the visible window. My tests showed that this worked for me in IE8, IE 9, and Firefox.
body #s4-ribbonrow { left: 0; position: fixed; top: 0; width: 100%; z-index: 101; } body #s4-workspace { padding-top: 44px; }
That should be it. Not too hard.
No comments:
Post a Comment