Hello. I have a post structure: 4 small and 2 large, and then 4 small, 1 large and 2 small. The fact is that I don’t know what to write to media queries at what screen resolutions. I do not understand what I need to reduce or increase.
At the resolution from 974 to 730, the layout breaks. I make up the template for myself. It did not include how and what should look like on 768, 480 and 320.
Until 768 , I cannot get 4 small, then 2 large, and then 4 small, 1 large and 2 small.
.news { max-width: 980px; min-height: 500px; background-color: gray; display: flex; flex-wrap: wrap; justify-content: center; } .postSmall { flex-basis: 210px; height: 266px; background-color: #fff; display: inline-block; margin: 17px; } .postBig { flex-basis: 455px; height: 266px; background-color: #fff; display: inline-block; margin: 17px; } /* Custom, iPhone Retina */ @media only screen and (min-width: 320px) {} /* Extra Small Devices, Phones */ @media only screen and (min-width: 480px) {} /* Small Devices, Tablets */ @media only screen and (min-width: 768px) {} /* Medium Devices, Desktops */ @media only screen and (min-width: 992px) {} <meta name="viewport" content="width=device-width, initial-scale=1.0"> <section class="news"> <div class="postSmall"></div> <div class="postSmall"></div> <div class="postSmall"></div> <div class="postSmall"></div> <div class="postBig"></div> <div class="postBig"></div> <div class="postSmall"></div> <div class="postSmall"></div> <div class="postSmall"></div> <div class="postSmall"></div> <div class="postBig"></div> <div class="postSmall"></div> <div class="postSmall"></div> </section> And with 768 like this:
Tell me what to do? Here is the problem itself:



