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

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter4: Financial Functions, Data Tables, And Amortization Schedules
Section: Chapter Questions
Problem 3EYK
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
  • 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
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning