Please fix and improve my HTML and CSS code: First picture is my WRONG output. Second picture is the EXPECTED output. Just use random pictures for photo1. photo2, photo3, photo4, photo1thumb, photo2thumb, photo3thumb, photo4thumb for testing.   index.html Image Gallery Image Gallery             Golden Gate Bridge                   California Beach              Waves Crashing              Pacific Sunset

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter7: Creating Templates, Importing Data, And Working With Smartart, Images, And Screenshots
Section: Chapter Questions
Problem 18AYK
icon
Related questions
Question
100%

Please fix and improve my HTML and CSS code:

First picture is my WRONG output.

Second picture is the EXPECTED output.

Just use random pictures for photo1. photo2, photo3, photo4, photo1thumb, photo2thumb, photo3thumb, photo4thumb for testing.

 

index.html

<!DOCTYPE html>
<html lang="en">
<head>
<title>Image Gallery</title>
<meta charset="utf-8">
<style>

#gallery     {     position: relative; }
#gallery ul     {     width: 250px; list-style-type: none; }
#gallery li     {     display: inline; float: left; padding: 10px
#gallery img     {     border-style: none; }
#gallery a     {     text-decoration: none; color: #333;
                font-style: italic; }
#gallery span     {     display: none; }
#gallery a:hover span { 
                    display: block; 
                    position: absolute;
                    top: 10px; left: 300px; 
                    text-align: center; }

</style>
</head>
<body>
<h1>Image Gallery</h1>
<div id = "gallery">
<ul>
    <li><a href="photo1.jpg"><img src="photo1thumb.jpg" width="100" <span>
        <img src="photo1.jpg" width="250" height="150">Golden Gate Bridge
        </li> 
    <li><a href="photo2.jpg"><img src="photo2thumb.jpg" width="100"<span>
    <img src="photo2.jpg" width="250" height="150">California Beach</li>
    
    <li><a href="photo3.jpg"><img src="photo3thumb.jpg" width="100"<span>
    <img src="photo3.jpg" width="250" height="150">Waves Crashing</li>
    
    <li><a href="photo4.jpg"><img src="photo4thumb.jpg" width="100"<span>
    <img src="photo4.jpg" width="250" height="150">Pacific Sunset</li>
    
</ul>
</div>
</body>
</html>

 

Image Gallery
TORE
1100
Golden Gate Bridge
California Beach
Transcribed Image Text:Image Gallery TORE 1100 Golden Gate Bridge California Beach
Image Gallery
Image Gallery
Pacific Sunset
An interactive image gallery with CSS
с
X
III
Transcribed Image Text:Image Gallery Image Gallery Pacific Sunset An interactive image gallery with CSS с X III
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage