<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<title>Document</title>
</head>
<body>
<section class="section">
<div class="main-box">
<div class="box-1">
<h2 class="box-title"> welcome to webjogot</h2>
<p class="box-text"> Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vel quod minus iusto in repellat ex. Odio illo ex dolorum voluptatum ratione. Cupiditate sapiente iure odio facere recusandae dolore id tempore. </p>
</div>
<div class="box-2">
<h2 class="box-title"> welcome to webjogot</h2>
<p class="box-text"> Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vel quod minus iusto in repellat ex. Odio illo ex dolorum voluptatum ratione. Cupiditate sapiente iure odio facere recusandae dolore id tempore. </p>
</div>
<div class="box-3">
<h2 class="box-title"> welcome to webjogot</h2>
<p class="box-text"> Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vel quod minus iusto in repellat ex. Odio illo ex dolorum voluptatum ratione. Cupiditate sapiente iure odio facere recusandae dolore id tempore. </p>
</div>
</div>
</section>
</body>
</html>"
CSS কোড গুলো:".section{
background-image: linear-gradient(to right,rgba(223, 120, 61, 0.795),rgba(251, 231, 231, 0.171)),
url(../img/demo-image3.jpg);
height: 75vh;
}
.main-box{
margin: 10px;
padding: 10px;
position: relative;
text-align: center;
}
.box-1{
position: absolute;
background-color: white;
text-align: center;
height: 55vh;
width: 220px;
padding: 10px;
top: 40px;
left: 50px;
border-radius: 5px;
box-shadow: 1px 3px 20px rgba(42, 38, 38, 0.794);
}
.box-1:hover{
transform: translateY(-5px) scale(1.05);
}
.box-2{
position: absolute;
background-color: white;
text-align: center;
height: 55vh;
width: 220px;
padding: 10px;
top: 40px;
left: 350px;
border-radius: 5px;
box-shadow: 1px 3px 20px rgba(42, 38, 38, 0.794);
}
.box-2:hover{
transform: translateY(-5px) scale(1.05);
}
.box-3{
position: absolute;
background-color: white;
text-align: center;
height: 55vh;
width: 220px;
padding: 10px;
top: 40px;
left: 650px;
border-radius: 5px;
box-shadow: 1px 3px 20px rgba(42, 38, 38, 0.794);
}
.box-3:hover{
transform: translateY(-5px) scale(1.05);
}
.box-title{
font-size: 22px;
font-weight: 700;
margin-bottom: 50px;
}
.box-text{
font-size: 12px;
letter-spacing: 1px;
font-style: italic;
}"
No comments:
Post a Comment