Skip to content

Instantly share code, notes, and snippets.

@jhonsore
Created February 3, 2016 18:47
Show Gist options
  • Save jhonsore/62bc896056dc09696ca5 to your computer and use it in GitHub Desktop.
Save jhonsore/62bc896056dc09696ca5 to your computer and use it in GitHub Desktop.
#parent{
height: 100%;
width: 100%;
overflow: hidden;
}
#child{
width: 100%;
height: 100%;
overflow: auto;
padding-right: 15px; /* Increase this value for cross-browser compatibility */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment