The icon goes behind the button, see the screenshot.
<i class="fas fa-calendar-alt" style="margin-left:-120px;font-size:22px;color:#059bce"></i> The icon goes behind the button, see the screenshot.
<i class="fas fa-calendar-alt" style="margin-left:-120px;font-size:22px;color:#059bce"></i> If I understand you correctly, it should look like this. tag i need to be inserted into the object in which you want to see it. And after that you can give the parent position: relative , and the position: absolute icon itself and shove it wherever you want and it will not hide anywhere.
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet"/> <button>asdasd <i class='fa fa-bars'></i> asdasd</button> Source: https://ru.stackoverflow.com/questions/847699/
All Articles