It is necessary to build blocks in one line. And their width should be 1/3 of the parent and the frame. There should be no padding between blocks. I sort of did everything right, but the third block comes out from the bottom of the new line. What is wrong I do not understand ...
.ex1 .variant1 { box-sizing: border-box; background: red; } .ex1 .variant1 .red { display: inline-block; width: 33.3%; border: solid 10px black; margin: -5px; } .ex1 .variant1 .green { display: inline-block; width: 33.3%; border: solid 10px black; margin: -5px; } .ex1 .variant1 .blue { display: inline-block; width: 33.3%; border: solid 10px black; margin: -5px; } <div class="ex1"> <div class="cols variant1"> <div class="red"> <h3>Погода</h3> <p>Сегодня солнечно</p> </div> <div class="green"> <h3>Курс доллара</h3> <p>1 доллар США = 30,32 рубля</p> </div> <div class="blue"> <h3>Сейчас в кино</h3> <p>Пятый элемент (2002)</p> </div> </div>