I need to create a 100% width & height link inside of a flexbox. This does render successfully in Firefox, IE11, but not webkit browsers like Chrome. Webkit expands the width, but does NOT expand to 100% height. In this scenario, it is only the height of the one line of text. Firefox and IE11 do expand the anchor the the full height of the list-item.
Here is the CSS:
.height-100vh {
height: 100vh;
}
ul.flex-column {
padding: 0;
margin: 0;
}
ul.flex-column li {
list-style: none;
}
.flex-column {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: column wrap;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
}
.flex-cell {
-webkit-box-flex: 1;
-webkit-flex: 1;
-moz-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.flex-full {
width: 100%;
height: 100%;
}
.full-anchor {
display:block;
width: 100%;
height: 100%;
background: #000;
color: #FFF;
}
and the HTML:
<body class="height-100vh">
<ul class="flex-column flex-full">
<li class="flex-cell"><a href="#" class="full-anchor">hello</a></li>
<li class="flex-cell"><a href="#" class="full-anchor">hello</a></li>
<li class="flex-cell"><a href="#" class="full-anchor">hello</a></li>
</ul>
</body>
Are there potentially some prefixes that I am not using? I am using autoprefixr. Also to note: I'm using normalize.css.