Scroll down to get Source Code π
Scroll down to get Source Code π
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>ISRO IMAGE GALLERY</title>
</head>
<body>
<h1 class="title">Chandrayaan-3 <span>image Gallery</span> </h1>
<div class="container">
<div class="box">
<img src="./images/a.webp" alt="" class="style2">
<img src="./images/2.jpg" alt="" class="style1">
<img src="./images/3.webp" alt="" class="style2">
<img src="./images/4.webp" alt="" class="">
<img src="./images/11.webp" alt="" class="style2">
<img src="./images/6.jpg" alt="" class="style3">
<img src="./images/8.webp" alt="" class="">
<img src="./images/9.webp" alt="" class="style3">
<img src="./images/10.webp" alt="" class="style2">
<img src="./images/5.webp" alt="" >
<img src="./images/7.webp" alt="" class="style1">
<img src="./images/12.webp" alt="" class="style2">
<img src="./images/13.webp" alt="" class="style3">
<img src="./images/14.webp" alt="" class="style2">
<img src="./images/15.webp" alt="">
<img src="./images/16.webp" alt="">
<img src="./images/17.webp" alt="">
<img src="./images/18.webp" alt="">
<img src="./images/19.webp" alt="">
</div>
</div>
</body>
</html>
Scroll down to get Source Code π
CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background: #ffe7d2;
}
.title{
color: #f08080;
font-size: 45px;
text-align: center;
padding-bottom: 8px;
border-bottom: 3px solid #f08080;
margin-top: 30px;
letter-spacing: 1px;
text-shadow: 0 1.36px 2.896px #f77d7d,0 -2px 1px #fff;
text-transform: uppercase;
}
.title span{
color: #f08080;
font-weight: 400;
}
.container{
width: 1200px;
min-width: 90%;
margin: 50px auto;
}
.box{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 300px;
grid-auto-flow: dense;
gap: 15px;
}
.box img{
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 15px;
transition: all 0.3s ease-in-out;
box-shadow: rgba(20, 20, 20, 0.19) 0px 10px 20px, rgba(22, 22, 22, 0.23)
0px 6px 6px;
}
.box img:hover{
box-shadow: 0 0 4px #fff;
cursor: pointer;
opacity: 1;
margin-top: -10px;
}
.style1{
grid-column: span 2;
}
.style2{
grid-row: span 2;
}
.style3{
grid-row: span 2;
grid-column: span 2;
}
Comments
Post a Comment