Take a look at this code
To center the icon within a div, I am using the following code:
<div class="webview-back icon"
style="width: 34px; height: 34px; display: inline-block; text-align: center; background-color: lightgray;"><i
class="fa fa-arrow-left" style="vertical-align: middle;"></i>
</div>
It should look like this: https://i.sstatic.net/KAFAh.png
However, when I include
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css">
, the icon aligns to the top.
https://i.sstatic.net/D2JwM.png
I would prefer not to use bootstrap's .btn. Is there a way to keep the icon centered within the div even when including bootstrap.css?