On my iPhone (iPhone 6, iOS 8), I noticed that the loader is positioned slightly above the button. However, when I use the Chrome mobile emulator, I can't see this issue. I'm puzzled about how to resolve it. What do you think could be causing this problem?
img.loader {
text-align: center;
width: 20px;
margin: auto;
display: block;
position: absolute;
right: 15px;
top: 10px;
}
button {
width: 100%;
padding: 12px;
background: #4aa3df;
color: #fff;
border: none;
font-size: 14px;
margin-bottom: 10px;
cursor: pointer;
box-sizing: border-box;
}
.submitBtnWrap {
position: relative;
}
<br>
<br>
<div class="submitBtnWrap">
<button id="login_submit" class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
<img src="http://i.imgur.com/ScvlxYo.gif" class="loader">
</div>