After incorporating this fiddle into my code, the goal was to design a circular button.
The code provided is for bootstrap 3. However, when using it with bootstrap 4, the button ends up being square instead of circular. See example here:
The CSS being utilized is as follows:
.btn-circle {
width: 30px;
height: 30px;
padding: 6px 0px;
border-radius: 15px;
text-align: center;
font-size: 12px;
line-height: 1.42857;
}
Just like with all buttons, I have assigned classes btn
and btn-success
(or similar), along with this additional class.
Upon inspecting, it does apply this style, however, something seems to be conflicting or altering its appearance, resulting in a square shape.
Despite searching extensively on Google, I haven't been able to find any solution or functional code that would render a circular button in bootstrap 4. Any suggestions?