-
Notifications
You must be signed in to change notification settings - Fork 0
/
day3.html
43 lines (35 loc) · 2.08 KB
/
day3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image class of Bootstrap</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
</head>
<body>
<div class="container my-5">
<!-- Class rounded for rounded corners -->
<img src="https://source.unsplash.com/random/?nature,lake" height="400px" class="rounded" width="400px">
<!-- Class rounded-circle for circular image -->
<img src="https://source.unsplash.com/random/?nature,fruit" height="400px" width="400px" class="rounded-circle">
<!-- Class img-thumbnail for thubnail type of image -->
<img src="https://source.unsplash.com/random/?nature,forest" height="400px" width="400px" class="img-thumbnail">
</div>
<div class="container my-5">
<!-- It will automatically Center The Image -->
<img src="https://source.unsplash.com/random/?nature,lake" height="400px" class="mx-auto d-block" width="400px">
</div>
<!-- Aligning of Image (float start,end) -->
<div class="container my-5">
<!-- It will automatically Center The Image -->
<img src="https://source.unsplash.com/random/?nature,vegetables" height="400px" class="float-end" width="400px">
<!-- <img src="https://source.unsplash.com/random/?nature,vegetables" height="400px" class="float-start" width="400px"> -->
</div>
<!-- Responsive Image (float start,end) -->
<div class="container my-5">
<!-- It will automatically Center The Image -->
<img src="https://source.unsplash.com/random/?nature,desert" height="400px" class="img-fluid" width="400px">
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
</html>