Created
January 24, 2021 12:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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