Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Created January 22, 2014 14:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukehedger/8560101 to your computer and use it in GitHub Desktop.
Save lukehedger/8560101 to your computer and use it in GitHub Desktop.
Border around browser viewport - with scrollbars inside
.page-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 700; /* must be the higher than all other elements */
overflow: auto; /* moves scrollbars inside border */
background: #fff;
border: 5px solid #ff9900;
}
<div class="page-wrapper">
<div class="page">
Page content goes in here
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment