Currently, I am in the process of implementing an upvote button using fa fa signs
. However, I have encountered an issue where the background color of the up vote button
is bleeding outside of the sign
(possibly due to padding on the icon), and I am striving to conceal this outer padding. Ideally, the color should only be contained inside the upvote sign.
<link href="https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css" rel="stylesheet" type="text/css" />
<i class="fal voteup fa-sort-up fa-4x"></i>
.voteup {
background-color : red;
}
<link href="https://cdn.jsdelivr.net/gh/hung1001/font-awesome-pro@4cac1a6/css/all.css" rel="stylesheet" type="text/css" />
<i class="fal voteup fa-sort-up fa-4x"></i>
I have attempted to resolve the issue by applying padding: none;
, but unfortunately, it did not work as expected.
If anyone can offer assistance with this matter, it would be greatly appreciated.