I can work this around, but I feel I don't understand something entirely. I'm used that whenever you apply display:block;
to an element it will automatically go full width. However, when I apply d-block
class to bootstrap 4 button (.btn
) it does not go full width unless I add width:100%;
css property or .w-100
class.
I know that .btn-block
class allows to make button full width, but this is not ideal, when you only want your button to be full width on certain breakpoint.
EDIT:
For those who asked for code: https://codepen.io/samaxe/pen/LYERYxq