I
I
Idel Gizatullin2017-07-10 21:14:11
css
Idel Gizatullin, 2017-07-10 21:14:11

How to layout the sidebar so that it is after the content on mobile, even if the content has full-width blocks?

Expected:
a2e24a92397f4216bc3558da66fa12e5.jpg
Codepen, on which I tried to analyze the situation: https://codepen.io/edele/pen/weQpMq
There it turned out only to put a sidebar before the full-width on the mobile, but you need to after.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pushkarev, 2017-07-10
@AXP-dev

Flexbox and the order property

V
Vadim Kot, 2017-07-10
@vadimkot

In this case, when the sidebar is in the container, it will not be possible to display it after. Only if you display the sidebar twice and hide one of them, and change their visibility in the media query.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question