-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage-links.html
More file actions
70 lines (70 loc) · 2.89 KB
/
image-links.html
File metadata and controls
70 lines (70 loc) · 2.89 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linked Images</title>
<style>
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 50px;
}
.grid-item img {
width: 250px;
height: 150px;
object-fit: cover;
display: block;
}
body {
font-family: Arial, Helvetica, sans-serif;
margin: 20px;
background-color: rgb(24, 23, 23);
}
p {
color: blueviolet;
}
h2 {
color: wheat;
}
.green {
color: rgb(19, 133, 95);
}
.purple {
color: blueviolet;
}
</style>
</head>
<body>
<nav>
<a href="#home" id="green">Home</a>
<a href="#gallery" id="green">Gallery</a>
<a href="#menu" id="green">Menu</a>
</nav>
<section id="home">
<h2>Home</h2>
<p>Welcome to linked images. This page is meant to illustrate how one can link images to external websites. Below is a sample image to show you what I'm talking about.</p>
<a href="https://www.google.com" title="Visit google.com" target="_blank">
<img src="techie.jpeg" alt="Techie" width="250px" height="150px">
</a>
</section>
<section id="gallery">
<h2>Gallery</h2>
<div class="grid-container">
<div class="grid-item"> <a href="https://www.youtube.com" title="Visit youtube.com" target="_blank"> <img src="nature1.jpeg" alt="A forest"></a></div>
<div class="grid-item"> <a href="https://www.spotify.com" title="Visit spotify.com" target="_blank"> <img src="nature2.jpeg" alt="A forest and a lake"></a></div>
<div class="grid-item"> <a href="https://www.ntvkenya.co.ke" title="Visit ntvkenya.co.ke" target="_blank"> <img src="nature3.jpeg" alt="A river"></a></div>
<div class="grid-item"> <a href="https://www.coursera.com" title="Visit coursera.com" target="_blank"> <img src="nature4.jpeg" alt="A field"></a></div>
</div>
</section>
<section id="menu">
<h2>Menu</h2>
<ul>
<li> <a href="pizza.jpeg" target="_blank" id="purple">Pizza</a></li>
<li> <a href="burger.jpeg" target="_blank" id="purple">Burger</a></li>
<li> <a href="shawarma.jpeg" target="_blank" id="purple">Shawarma</a></li>
<li> <a href="pasta.jpeg" target="_blank" id="purple">Pasta</a></li>
</ul>
</section>
</body>
</html>