-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.html
47 lines (41 loc) · 1.39 KB
/
images.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
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Example</title>
<style>
/* CSS for styling the image container (optional) */
.image-container {
max-width: 100%;
/* Set the maximum width to the width of the viewport */
margin: 20px auto;
text-align: center;
/* Center-align the images */
}
/* CSS for styling the image itself (optional) */
img {
max-width: 100%;
/* Make the image responsive */
height: auto;
/* Maintain aspect ratio */
display: inline-block;
/* Keep the images on the same line */
margin: 0 10px;
/* Add some space between the images */
}
</style>
</head>
<body>
<h1>Image Example</h1>
<!-- Container for the images -->
<div class="image-container">
<!-- First image -->
<img src="https://i.pinimg.com/564x/61/61/0c/61610c33108b6fc55466345d095df4d3.jpg" alt="img1" width="500px"
height="500px">
<!-- Second image -->
<img src="https://i.pinimg.com/564x/3b/50/dc/3b50dcaad1f0d5db693ccd10758bfa75.jpg" alt="img2" width="300px"
height="500px">
</div>
</body>
</html>