index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hancie e-Learning Studio</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/
css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/
js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/
bootstrap-icons@1.9.1/font/bootstrap-icons.css">
</head>
<body>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.
com/font-awesome/4.7.0/css/font-awesome.min.css" />
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox">
<div class="service-icon">
<span><i class="fa fa-globe"></i></span>
</div>
<h3 class="title">Web Design</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendis
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox orange">
<div class="service-icon">
<span><i class="fa fa-rocket"></i></span>
</div>
<h3 class="title">Web Development</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendi
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox orange">
<div class="service-icon">
<span><i class="fa fa-mobile"></i></span>
</div>
<h3 class="title">Responsive Design</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendi
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="serviceBox black">
<div class="service-icon">
<span><i class="fa fa-briefcase"></i></span>
</div>
<h3 class="title">Brand Building</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur adipisicing
elit. Qui quaerat fugit quas veniam perferendis repudiandae sequi,
dolore quisquam illum.</p>
</div>
</div>
</div>
</div>
<style>
:root{ --main-color: #ff5252; }
.serviceBox{
color: var(--main-color);
font-family: 'Open Sans', sans-serif;
text-align: center;
padding: 30px 30px 40px;
position: relative;
z-index: 1;
}
.serviceBox:before,
.serviceBox:after{
content: '';
border: 2px solid var(--main-color);
border-left: none;
border-right: none;
border-radius: 30px;
position: absolute;
left: 0;
right: 0;
top: 13px;
bottom: 13px;
z-index: -1;
}
.serviceBox:after{
border: 2px solid var(--main-color);
border-top: none;
border-bottom: none;
left: 13px;
right: 13px;
top: 0;
bottom: 0;
}
.serviceBox .service-icon{
font-size: 35px;
margin: 0 0 8px;
}
.serviceBox .title{
color: #fff;
background-color: var(--main-color);
/* font-family: 'Teko', sans-serif; */
font-size: 20px;
font-weight: 600;
text-transform: capitalize;
padding: 4px 15px 6px;
margin: 0 -15px 10px;
}
.serviceBox .description{
color: #666;
font-size: 13px;
letter-spacing: 0.5px;
line-height: 22px;
margin: 0;
}
.serviceBox.green{ --main-color: #218c74; }
.serviceBox.orange{ --main-color: #cd6133; }
.serviceBox.black{ --main-color: #2c2c54; }
@media only screen and (max-width: 990px){
.serviceBox{ margin: 0 0 20px; }
}
</style>
</body>
</html>