In Firefox, the icon is not displaying in the center, but it works fine in Opera.
body {
height: 100vh;
display: grid;
place-items: center;
}
.link {
background-color: red;
padding: 3px;
display: grid;
place-items: center;
text-decoration: none;
color: initial;
}
i {
background-color: #fff;
font-size: 2rem;
}
<head>
<link href='https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a6c4c9decfc5c9c8d5e69488978897">[email protected]</a>/css/boxicons.min.css' rel='stylesheet'>
</head>
<a href="#" class="link">
<i class='bx bx-home'></i>
</a>
Has anyone encountered a similar issue with Firefox?
Here is a screenshot from Opera
And this one shows how it appears in Firefox
===================Edit===================
The version of my Firefox is 95.0.2
(latest version at the moment).
Any suggestions on how to fix this alignment issue in Firefox?