Skip to content

Instantly share code, notes, and snippets.

@Nadeeshyama
Created January 24, 2021 12:42
Show Gist options
  • Save Nadeeshyama/67e9caba5d434b03e7297cb4969a80c7 to your computer and use it in GitHub Desktop.
Save Nadeeshyama/67e9caba5d434b03e7297cb4969a80c7 to your computer and use it in GitHub Desktop.
[Match Parent's Height] Match the child elements height to parent element's height #Layout
.parent {
overflow: hidden;
position: relative;
width: 100%;
}
.child {
height: 100%;
position: absolute;
right: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment