V
V
Vitaly Gusev2020-03-24 17:02:13
Flexbox
Vitaly Gusev, 2020-03-24 17:02:13

How to stretch only one block using flexbox?

There is a code:



With align-items: stretch; li elements are stretched to full height.
How can I stretch only one of the li elements using flexbox? (without using pseudo-classes).

I believe that there is no way without pseudo-classes. And my opinion is that the simplest and most correct is to use align-self for the desired element. What do you think?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-03-24
@guvijur


Without the use of pseudo-classes in any way, or set a unique selector.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question