JSFiddle - React, Tailwind, and code Playground
HTML
<div class="fixed">
<div class="fixedTable">
<div class="fixedCell">
<div class="inlineBlock">
<h2>Can't Focus On Input in Firefox</h2>
<input type="text">
</div>
</div>
</div>
</div>
<div class="fixedUnder">
<div class="fixedTableUnder">
<div class="fixedCellUnder">
<div class="inlineBlock">
<h2>Clearfix Causing This Problem?</h2>
<div class="wrapper">
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
<div class="floatLeft">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="inlineBlock">
<h2>Cool Story BRO</h2>
</div>
CSS
.fixed{
position: fixed;
z-index: 23;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,.65);
overflow: auto;
}
.fixedTable{
display: table;
width: 100%;
height: 100%;
z-index: 24;
}
.fixedUnder{
position: fixed;
z-index: 19;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.65);
overflow: auto;
}
.fixedTableUnder{
display: table;
width: 100%;
height: 100%;
z-index: 20;
}
.fixedCell{
z-index: 25;
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
display: table-cell;
}
.fixedCellUnder{
z-index: 21;
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
display: table-cell;
}
.inlineBlock{
position: relative;
display: inline-block;
}
.floatLeft{
float: left;
width: 200px;
height: 200px;
background-color: yellow;
margin: 1em;
}
.floatLeft:after {
content: "";
display: table;
clear: both;
}
.absolute{
position: absolute;
}
.overflowXHidden{
overflow-x: hidden;
}