HTML code : Image Gallery Image Gallery                       Golden Gate Bridge         California Beach

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

HTML code :

<!DOCTYPE html>
<html lang="en">
<head>
<title>Image Gallery</title>
<meta charset="utf-8">
</head>
<body>
<h1>Image Gallery</h1>
<div id = "gallery">
    <li><a href="photo1.jpg"><img src="photo1.jpg" width="100" <span>
        <img src="photo1.jpg" width="150" height="150">
        </li>  
<a href="#">Golden Gate Bridge</a>
<li><a href="photo1thumb.jpg"><img src="photo1thumb.jpg" width="100" <span>
    <img src="photo1thumb.jpg" width="150" height="150">
    </li>
<a href="#">California Beach</a>
</div>
</body>
</html>
Lab 6
1. Configure span elements in the gallery not to display initially.
#gallery span (display: none; }
Note: View the result on the browser.
9. Configure the span elements in the gallery to display only when the web
visitor hovers the mouse over the thumbnail image link. Set the location
of the span to use absolute positioning. Locate the span 10 pixels down
from the top and 300 pixels in from the left. Center the text within the
span:
#gallery a:hover span ( display: block; position:
absolute;
top: 10px; left: 300px; text-align: center;
)
4| Page
Now, view the result.
If everything goes well, move the embedded css to an external css. Provide the necessary link in
the html to make it work.
Files to submit: index.html and your external css file
Transcribed Image Text:Lab 6 1. Configure span elements in the gallery not to display initially. #gallery span (display: none; } Note: View the result on the browser. 9. Configure the span elements in the gallery to display only when the web visitor hovers the mouse over the thumbnail image link. Set the location of the span to use absolute positioning. Locate the span 10 pixels down from the top and 300 pixels in from the left. Center the text within the span: #gallery a:hover span ( display: block; position: absolute; top: 10px; left: 300px; text-align: center; ) 4| Page Now, view the result. If everything goes well, move the embedded css to an external css. Provide the necessary link in the html to make it work. Files to submit: index.html and your external css file
5.
Create an embedded css (for now).
a. Set the gallery id to use relative positioning.
#gallery position: relative; }
b. The unordered list in the gallery should have a width of 250 pixels and
no list marker.
#gallery ul (width: 250px; list-style-type: none; }
c. Configure the list item elements in the gallery with inline display, left
float, and 10 pixels of padding.
#gallery li ( display: inline; float: left; padding:
10px; }
d. The images in the gallery should not display a border.
#gallery img { border-style: none; }
e. Configure anchor elements in the gallery to have no underline, #333 text
color, and italic text.
#gallery a {text-decoration: none; color: #333;
font-style: italic; )
f. Configure span elements in the gallery not to display initially.
Transcribed Image Text:5. Create an embedded css (for now). a. Set the gallery id to use relative positioning. #gallery position: relative; } b. The unordered list in the gallery should have a width of 250 pixels and no list marker. #gallery ul (width: 250px; list-style-type: none; } c. Configure the list item elements in the gallery with inline display, left float, and 10 pixels of padding. #gallery li ( display: inline; float: left; padding: 10px; } d. The images in the gallery should not display a border. #gallery img { border-style: none; } e. Configure anchor elements in the gallery to have no underline, #333 text color, and italic text. #gallery a {text-decoration: none; color: #333; font-style: italic; ) f. Configure span elements in the gallery not to display initially.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Properties of CSS
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education