I
I
igorc752021-01-18 16:53:09
css
igorc75, 2021-01-18 16:53:09

Grid is an adaptive grid, what's wrong?

We need a header for the site, so that with adaptability,
now they are located in the desktop version like this:
"line-1 line-2"
"line-3 line-4"

in the mobile one so that it is on top of each other,
something with a media query does not work for the screen width , here is an example

Link CODEPEN

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-01-18
@Casufi

flex + media query covers your case 100
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Desktop flex: 1 1 50%
Mobile flex: 1 1 100%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question