Good day. I ask for help in the implementation of this fragment of the layout. I did it by breaking into two lists, but I would like a better way to solve this problem. I will attach my decision here
.listWorks { width: 50%; float: left; margin-top: 99px; } .listWorks li { display: inline-block; float: left; } .listWorks li:not(.workLong), .listWorks a:not(.workLongLink) { max-height: 390px; } .workLong, .workLongLink { max-height: 780px; } <ul class="listWorks"> <li> <a href="#" class="hoverImg"> <img src="img/work-photo1.jpeg" alt=""> </a> </li> <li> <a href="#" class="hoverImg"> <img src="img/work-photo2.jpeg" alt=""> </a> </li> <li> <a href="#" class="hoverImg"> <img src="img/work-photo5.jpeg" alt=""> </a> </li> <li> <a href="#" class="hoverImg"> <img src="img/work-photo6.jpeg" alt=""> <span class="linkCaption montReg">creatively designed <span>Lorem ipsum dolor sit</span></span> </a> </li> </ul> <ul class="listWorks"> <li class="workLong"> <a href="#" class="hoverImg workLongLink"> <img src="img/work-photo3.jpeg" alt=""> </a> </li> <li> <a href="#" class="hoverImg"> <img src="img/work-photo4.jpeg" alt=""> </a> </li> <li> <a href="#" class="hoverImg"> <img src="img/work-photo7.jpeg" alt=""> </a> </li> </ul> 