<div class="mainB">
<div class="main"></div>
<div class="main"></div>
<div class="main"></div>
<div class="main"></div>
<div class="main"></div>
<div class="main"></div>
<div class="main"></div>
</div>
.mainB{
display: grid;
grid-template-columns: repeat(8, 2fr);
grid-template-rows: 2fr 2fr;
grid-template-areas:
"a a b b c c d d"
". e e f f g g .";
grid-gap: 10px;
background-color: #999;
width: 100%;
height: 100vh;
}
.main{
background-color: red;
}
.main:nth-of-type(1){
grid-area: a;
}
.main:nth-of-type(2){
grid-area: b;
}
.main:nth-of-type(3){
grid-area: c;
}
.main:nth-of-type(4){
grid-area: d;
}
.main:nth-of-type(5){
grid-area: e;
}
.main:nth-of-type(6){
grid-area: f;
}
.main:nth-of-type(7){
grid-area: g;
}
<div class="main">
<div class="main-gourmet"></div>
<div class="main-carhartt"></div>
<div class="main-adidas"></div>
<div class="main-deep"></div>
<div class="main-palace"></div>
<div class="main-nike"></div>
</div>
.main {
height: 100vh;
display: grid;
grid-template-areas:
"gourmet gourmet carhartt"
"gourmet gourmet adidas"
"deep palace nike";
grid-template-columns: 3fr 3fr 3fr;
grid-template-rows: 3fr 3fr 4fr;
grid-gap: 15px;
background-color: green;
}
.main-gourmet {
grid-area: gourmet;
opacity: 0.9;
background-color: red;
}
.main-carhartt {
grid-area: carhartt;
opacity: 0.9;
background-color: gray;
}
.main-adidas {
grid-area: adidas;
background-blend-mode: multiply, ;
background-color: black;
}
.main-deep {
grid-area: deep;
opacity: 0.9;
background-color: white;
}
.main-palace {
grid-area: palace;
opacity: 0.9;
background-color: black;
}
.main-nike {
grid-area: nike;
opacity: 0.9;
background-color: red;
}
<div class="totalMenu">
<div class="totalMenuInner">
<ul class="menuList">
<li class="menuItem">About</li>
<li class="menuItem">More
<ul class="subMenu">
<li class="subMenuItem">About</li>
<li class="subMenuItem">About</li>
<li class="subMenuItem">About</li>
<li class="subMenuItem">About</li>
</ul>
</li>
<li class="menuItem">Сontacts</li>
<li class="menuItem">Works</li>
</ul>
</div>
</div>
.totalMenu{
width: 100%;
background-color: #000;
margin-top: 450px;
}
.totalMenuInner{
width: 80%;
margin: 0 auto;
height: 90px;
}
.menuItem{
width: 25%;
font-size: 50px;
color: #fff;
float: left;
background-color: #000;
text-align: center;
padding: 15px 0;
cursor: pointer;
transition: .3s;
border-bottom: 1px solid #000;
border-top: 1px solid #000;
letter-spacing: 5px;
position: relative;
}
.menuItem:hover{
background-color: #fff;
color: #000;
}
.menuItem:hover .subMenu{
display: block;
}
.subMenu{
display: none;
position: absolute;
top: 89px;
left: 0;
width: 100%;
padding: 0;
}
.subMenuItem{
padding: 15px 0;
background-color: #000;
width: 100%;
color: #fff;
border-left: 1px solid #000;
border-right: 1px solid #000;
}
.subMenu{
border-top: 1px solid #fff;
}
.subMenuItem:hover{
background-color: #fff;
color: #000;
}