N
N
Norum2021-06-07 21:23:01
css
Norum, 2021-06-07 21:23:01

How to remove the collapse of elements when reducing the screen resolution?

On the full screen version, the menu has equal padding with other flex elements.
60be62b1a0538962328606.jpeg

At a resolution of less than 1500 px, I made a two-line menu using the grid, but then when the resolution is reduced, the elements collapse with each other and I don’t understand why.

@media screen and (max-width: 1500px) {
  

   .menu > ul  {
      display:  grid;
      width: 100%;
      grid-template-columns: repeat(4, max-content);
      background-color: red;
  }
}


60be63435f41b386550919.jpeg

How can I make it so that when the screen resolution is reduced, the menu has equal indents with other flex elements?

All code https://jsfiddle.net/zobq0nma/
Site itself ilini0v1.beget.tech

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question