D
D
ddeel2020-05-10 09:38:52
css
ddeel, 2020-05-10 09:38:52

How to make such a layout in flex?

5eb79f1c09f50139100020.png
header, nav, footer made separate blocks
then made container and shoved main(content) there
and in a separate not in the same maine made aside 2 blocks
as a result it turned out like this
5eb7a05e268fa232356014.png
example how did

<div class="container">
            <main class="content">
                <article class="article">
                         .................
                </article>
                 <article class="article">
                    ....................
                </article>

            </main>

            <aside class="sidebar">
                2

            </aside>

            <aside class="sidebar2">
                2

            </aside>

        </div>


in css
.container{
    display: flex;
    background-color: #fff;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2020-05-10
@ddeel

<div class="container">
            <main class="content">
                <article class="article">
                         .................
                </article>
                 <article class="article">
                    ....................
                </article>

            </main>

<div>
            <aside class="sidebar">
                1

            </aside>

            <aside class="sidebar2">
                2

            </aside>
</div>
        </div>

Didn't make any indents)

T
Type Programmer, 2020-05-10
@Oleg2002pr

Water so on flex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question