HTML AND CSS: PHOTOGALLERY Complete the following steps and follow the picture: 1. Code a div assigned to the id named gallery. This div will contain the thumbnail images, which will be configured within an unordered list. 2. Configure an unordered list within the div. Code four li elements, one for each thumbnail image. The thumbnail images will function as image links with a :hover pseudo-class that causes the larger image to display on the page. We’ll make this all happen by configuring an anchor element containing both the thumbnail image and a span element that comprises the larger image along with descriptive text. An example of the first li element is 3. Configure all four li elements in a similar manner. Substitute the actual name of each image file for the href and src values in the code. Write your own descriptive text for each image. Use photo2.jpg and photo2thumb.jpg in the second li element. Use photo3.jpg and photo3thumb.jpg in the third li element. Use photo4.jpg and photo4thumb.jpg for the fourth li element. index.html Image Gallery Image Gallery
HTML AND CSS: PHOTOGALLERY
Complete the following steps and follow the picture:
1. Code a div assigned to the id named gallery. This div will contain the thumbnail images, which will be configured within an unordered list.
2. Configure an unordered list within the div. Code four li elements,
one for each thumbnail image. The thumbnail images will function
as image links with a :hover pseudo-class that causes the larger
image to display on the page. We’ll make this all happen by
configuring an anchor element containing both the thumbnail image
and a span element that comprises the larger image along with
descriptive text. An example of the first li element is
<li><a href="photo1.jpg"><img src="photo1thumb.png" width="10 <span><img
src="photo1.png" width="250" height="150">
</li>
3. Configure all four li elements in a similar manner. Substitute the actual
name of each image file for the href and src values in the code. Write
your own descriptive text for each image. Use photo2.jpg and
photo2thumb.jpg in the second li element. Use photo3.jpg and
photo3thumb.jpg in the third li element. Use photo4.jpg and
photo4thumb.jpg for the fourth li element.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Image Gallery</title>
<meta charset="utf-8">
</head>
<body>
<h1>Image Gallery</h1>
<div id = "gallery">
</div>
</body>
</html>
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images