summaryrefslogtreecommitdiffstats
path: root/HTML/Chapter/Ch. 7 hands-on assignments/Ch7_msglm/ch7p/index.html
blob: bce1e3bb24929e3ac5abcd399f5418ee7ac3fdd4 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
    <head>	
        <title>First HTML Webpage</title>
        <meta charset="utf-8">
        <style>
* { 
    box-sizing: border-box; 
}

#gallery { 
    position: relative; 
}

#gallery ul { 
    width: 280px; 
    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>
        <div id=gallery>
            <ul>
                <li><a href="yls.jpg"><img src="yls.jpg" width="100" height="75" alt="YLS"><span><img src="yls.jpg" width="250" height="150" alt="YLS"><br>YLS</span></li>
                <li><a href="yogadoor.jpg"><img src="yogadoor.jpg" width="100" height="75" alt="yogadoor"><span><img src="yogadoor.jpg" width="250" height="150" alt="yogadoor"><br>yogadoor</span></li>
                <li><a href="lighthouselogo.jpg"><img src="lighthouselogo.jpg" width="100" height="75" alt="lighthouselogo"><span><img src="lighthouselogo.jpg" width="250" height="150" alt="lighthouselogo"><br>lighthouselogo</span></li>
            </ul>
        </div>
    </body>
</html>