U
U
uvv992021-12-05 23:22:26
css
uvv99, 2021-12-05 23:22:26

How to expand the buttons?

I'm trying to spread the buttons on different sides, I applied div { display: flex; justify-content: space-between; }, but the buttons are not fully extended. How to do it right, who can tell?

61ad1ebff40ea123203414.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nowm, 2021-12-05
@uvv99

Buttons stretch correctly, but you are using bootstrap and class .container, and bootstrap limits the width of this element, because it is a utility class for bootstrap and it prescribes a lot of its own styles for it. Blocks with buttons, respectively, do not crawl out of the parent container.
As one of the fixes, the class containercan be replaced with d-flex justify-content-betweenand they will start to stretch normally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question