Topic: Button with stacked fontawesome
<button type="button" class="btn" > <span class="fa-stack"><i class="fa fa-shopping-cart fa-stack-2x" style="color:#000000"></i><i class="fa fa-check fa-stack-1x" style="color:#000000"></i></span> </button>places the checkmark below the cart, see: sample It seems it has something to do with the css position property, but do you have any idea how I can fix this behavior? I dont want to set hardcoded padding / margin, as the button might have a variable size. Thank you in advance,
Marta Szymanska staff pro premium answered 7 years ago
.fa-stack
. You can remove this part of code below from _buttons.scss file and then you will have default Font Awesome settings:
.fa { font-size: 1rem; position: relative; vertical-align: middle; margin-top: -2px; }Best, Marta
vgs pro answered 7 years ago
Marta Szymanska staff pro premium answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes