Answer the question
In order to leave comments, you need to log in
How to make a responsive grid using grid with 2 columns of different sizes?
It is necessary to make an adaptive layout: 2 blocks - the left one with the menu and the right one with the content, when the screen size decreases, the width of the right one decreases to a certain threshold, after which it goes to a new line.
<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(270px, 1fr));">
<div>Menu</div>
<div>Content</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question