I
I
Ilya2020-03-10 14:00:00
Media queries
Ilya, 2020-03-10 14:00:00

Is it possible to create Grid Areas in media queries?

Is it possible to create Grid Areas in media queries? Is it possible to do so? Or if the Grid Area is in media queries, then nothing will work?

Let me explain why I want to do it this way:

I need areas to be able to move them, and this is only necessary for the mobile version.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xdevelx, 2020-03-10
@mediatr

I need the areas in order to be able to move them, and this is only necessary for the mob. versions.

To do this, grid-template-areas is defined, and grid-template-areas is overridden in media queries
Example: https://codepen.io/rachelandrew/pen/waVBpK

A
Alexey, 2020-03-10
@AleksRap

You already asked this question and I gave you a link to a competent tutorial - https://wp-kama.ru/id_8945/grid-v-css.html
Too lazy to delve into it yourself - welcome to the freelance exchange
Grid-area in media queries works fine . You are working with named areas, but these areas are not named anywhere

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question