JSFiddle - React, Tailwind, and code Playground
by Alireza Safian
HTML
<div id="projects">
<H1 class="projects">PROJECTS</H1>
<div class="inner-wrapper">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<button class="leftbtn"></button>
<button class="rightbtn"></button>
</div>
</div>
CSS
#projects {
width: 1280px;
height: 400px;
background-color: #306e73;
margin-top: 100px;
clear: both;
position: relative;
text-align: center;
}
.projects {
font-family: sans-serif;
font-weight: bold;
font-size: 48px;
color: #ffffff;
position: relative;
}
.box {
width: 230px;
height: 230px;
background-color: #848181;
display: inline-block;
margin-left: 40px;
margin-right: 40px;
margin-top: 25px;
}
.inner-wrapper
{
position: relative;
}
.leftbtn,
.rightbtn {
position: absolute;
top: 50%;
width: 60px;
height: 60px;
margin-top: -20px;
border-radius: 100px;
}
.leftbtn {
left: 0;
}
.rightbtn {
right: 0;
}