image not found

Create Responsive Image Box Using Css


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive image Box</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css" />
</head>
<body>

<h1 class="text-center">Create Responsive Image Box </h1>
<p class="text-center">Without Bootstrap Simple Css Using</p>

<div class="box"><img src="img/1.jpg" class="img-responsive"></div>
<div class="box"><img src="img/2.jpg" class="img-responsive"></div>
<div class="box"><img src="img/3.jpg" class="img-responsive"></div>
<div class="box"><img src="img/4.jpg" class="img-responsive"></div>
<div class="box"><img src="img/5.jpg" class="img-responsive"></div>
<div class="box"><img src="img/6.jpg" class="img-responsive"></div>
<div class="box"><img src="img/7.jpg" class="img-responsive"></div>
<div class="box"><img src="img/8.jpg" class="img-responsive"></div>

</body>
</html>
.box{width: 25%;float: left;}
.img-responsive{width: 100%;height: auto;}
.text-center{text-align: center;}
@media screen and (max-width: 768px) { .box{width: 100%;float: left;}}



Comments (10 )

sumit
8 Jun 2024

very nice.

1
19 Jun 2024

1.

1
26 Jun 2024

1.

1
26 Jun 2024

1.

1
26 Jun 2024

1.

1
26 Jun 2024

1.

1
26 Jun 2024

1.

1
26 Jun 2024

1.

1
26 Jun 2024

1.

1
24 Jul 2024

1.

Leave A Comment

Click for Ad