Why button is spread out when parent element display is flex
normal button is like this
but when set button’s parent element is flex, it’s change to this:
button spread out so I can’t use
display: flexwidth button?
Its because the parent is set to have a
align-items:stretchwhich stretches all the elements so they have the same position. You have to do a
align-items:centeror use the
items-centerclass on the parent.
@Dobromir It’s works, thank you.