Make the ribbon scroll with your page, without editing the masterpage file

I was looking for an answer on the following question: How can I make the ribbon scroll with my page, instead of hovering on top of the workspace. Numerous blog posts mention how you can do this, by editing lots of stuff. While actually it’s quite simple. Just add the following CSS:

<style type="text/css">
body {
    overflow: auto !important;

#s4-workspace {
    overflow: inherit !important;

That’s it! No ugly modifications to masterpages or javascript injections.

As result we go from:

workspace scroll


ribbon scroll


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s