если я вас правильно понял, значит, это решение для вас
CSS:
body {
width: 100vw;
margin: 0px;
padding: 0px;
background-color:blue;
overflow:hidden;
}
h1, h2{
font-family: sans-serif;
color: white;
text-align: center;
}
#container {
width: 80vw;
margin: auto;
height: auto;
background-color:rgb(123,108,160);
position: relative;
}
.row{
height: 125px;
background-color:green;
margin: 0px;
padding: 0px;
}
.col-trigger{
border: none;
height: 125px;
float: left;
width: 25%;
margin: 0px;
}
.white{
background-color:white;
}
.green{
border-color: green;
}
.row:hover > div{
background-color:red;
}
.col{
position: absolute;
height:100%;
width: 25%;
display: none;
background-color: purple;
float:left;
top: 0;
z-index: 1;
opacity: .7;
mix-blend-mode: hardlight;
pointer-events: none;
}
.col2 {
left: 25%;
}
.col3 {
left: 50%;
}
.col4 {
left: 75%;
}
.col-trigger:hover+.col{
display: block;
}
HTML:
<h1>WEB<h1>
<h2>Hey everyone</h2>
<div id="header"> </div>
<div id="container">
<div class="row">
<div class="col-trigger white">
<p>Week 1</br> May 7 <br> - <br> May 11 </p>
</div>
<div class="col col1"></div>
<div class="col-trigger green">
<ul>
<li> Course introduction </li>
<li> Internet Architecture </li>
<li> Introduction to Javascript </li>
</ul>
</div>
<div class="col col2"></div>
<div class="col-trigger white">
<a href=""> Welcome </a>
<a href="" >Lecture 1 </a>
</div>
<div class="col col3"></div>
<div class="col-trigger green">
<h3> Work Due </h3>
</div>
<div class="col col4"></div>
</div>
<div class="row">
<div class="col-trigger white"><p> Week 2</p></div>
<div class="col col1"></div>
<div class="col-trigger green">
<ul>
<li> Javascript functions </li>
<li> Built in Global Functions </li>
</ul>
</div>
<div class="col col2"></div>
<div class="col-trigger white">
<a href=""> Lecture 2 </a>
</div>
<div class="col col3"></div>
<div class="col-trigger green"></div>
<div class="col col4"></div>
</div>
<div class="row">
<div class="col-trigger white"></div>
<div class="col col1"></div>
<div class="col-trigger green"></div>
<div class="col col2"></div>
<div class="col-trigger white"></div>
<div class="col col3"></div>
<div class="col-trigger green"></div>
<div class="col col4"></div>
</div>
</div>
<div class="special"></div>