Created
March 24, 2018 22:19
-
-
Save kasper573/95e016e35f196ad83f62f2e4feec867c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Edge 100% height window resize issue</title> | |
<style type="text/css"> | |
html, body, #root { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
.content { | |
background: skyblue; | |
} | |
.footer { | |
background: tomato; | |
} | |
.flex { | |
display: flex; | |
flex-shrink: 0; | |
flex-direction: column; | |
} | |
.full-height { | |
height: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="root" class="flex"> | |
<div class="flex" style="flex:1 1 0%;"> | |
<div class="content flex full-height">Content</div> | |
<div class="footer">Footer</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add an height of 0 to your inline style
flex:1 1 0%; height: 0;
this will fix your edge issue.