D
D
Dimox2018-05-24 10:31:51
css
Dimox, 2018-05-24 10:31:51

Is it possible to lay out such a block on Flexbox without using an additional wrapper?

Here is an example of a block - https://jsfiddle.net/t1hvm9cf/
Is it possible to lay it out without using the .item__inner tag? So that the code would be like this:

<div class="item">
  <div class="item__image"></div>
  <div class="item__title"></div>
  <div class="item__text"></div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Verkh, 2018-05-24
@sadisme

No. Flex aligns elements along one axis.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question