C
C
cyberlog2020-02-17 17:40:30
css
cyberlog, 2020-02-17 17:40:30

An example of nested blocks - which approach for css layout is considered more appropriate?

5e4aa385aa898067340920.jpeg

If you use flex everywhere, it will turn out somehow difficult.

.block1 {
    display:flex;
}
.block3{
    flex:1;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}
.block4,  .block5{
    display:flex;
    justify-content: space-between;
}


Is that considered normal? Or is there some other way to be more correct?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Usachov, 2020-02-17
@rockfeeler

If you use flex everywhere, it will turn out somehow difficult.

You can try on the fleets. I'll see how much easier it can be. =)
And according to the subject, everything is more or less normal. And it will not be difficult to maintain adaptability with such a layout.

C
cristalex, 2020-02-17
@cristalex

And what's the problem with using flex everywhere? Quite normal :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question