0
When applied the hover, it moves the elements.
.iconsHab i{
color: #0098DA;
padding: 5px;
vertical-align: middle
}
.iconsHab i:hover{
color: #0098DA;
font-size: 20px;
}
<!--
Bootstrap docs: https://getbootstrap.com/docs
-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<div class="container">
<div class="row">
<div class="hab">
<p class="iconsHab">
<i class="fab fa-js"></i>
<i class="fab fa-node-js"></i>
<i class="fab fa-css3-alt"></i>
<i class="fab fa-html5"></i>
<i class="fab fa-vuejs"></i>
<i class="fab fa-angular"></i>
<i class="fab fa-react"></i>
<i class="fas fa-coffee"></i>
</p>
</div>
</div>
</div>
You change the
font-sizein thehover. Isn’t this leaving the larger text? In fact, this is the only thing that changes, because the color of the font remains the same.– Woss
It is because of the "font-size" you have placed. By giving Hover, it increases the size of the icon. What if you just change the color of the icon instead of changing the font size?
– Rodrigo Tognin
has no text, I used the tag <p> just to style better. I need precisely the effect that when passing the mouse increases the icon.
– wiliamvj