A
A
Alexander Kositsyn2017-10-16 20:12:59
HTML
Alexander Kositsyn, 2017-10-16 20:12:59

Why does flexitem stretch to full screen width in this case?

link to the github page to make it easier to see in the inspector:
https:
//alexanderkositsyn.github.io/about_page/app
... .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artemy, 2017-10-17
Kaydash @kayart

This is caused by incorrect use of the shorthand flex.
Try instead of "flex: 0 0 220px" on the avatar block and "flex: 0 0 380px" on the "About Me" block, use width: 220px and width: 380px respectively. At the same time, I recommend that you generally study what the values ​​in the abbreviated notation flex mean - for example, here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question