I am showing a button like:
.button {
height: 44px;
background-color: #FF0000;
display: block;
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
border-radius: 5px;
border-top: none !important;
line-height: 42px !important;
}
<div class="button">Text</div>
Everything works perfectly, except when viewing it in mobile on:
Android 8.1.0 AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.132 Mobile Safari/537.36
the text shows approximately 2 pixels higher up inside the div than with:
Android 9 AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.73 Mobile Safari/537.36
Why would that be? And how is it fixable?