-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery-3col-mix.html
More file actions
187 lines (112 loc) · 5.88 KB
/
gallery-3col-mix.html
File metadata and controls
187 lines (112 loc) · 5.88 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!-- Listing 2-5a. Creating Three Columns of Mixed Format Images with Rollover (gallery-3col-mix.html) -->
<!DOCTYPE html>
<html lang=”en">
<head>
<title>Three column mixed image shapes</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="gallery-3col-mix.css">
<style>
<!-- Listing 2-5b provides the CSS presentation information for a three column gallery
Listing 2-5b. The CSS Style Sheet for Listing 2-5a (gallery-3col-mix.css) -->
/*set images to have no borders*/
img { border:none;
}
/*place the first column on the page*/
#col-1 { position: absolute; top: 0; left: 0; width:85px;
}
/*remove bullets from the list elements*/
li { margin: 5px; list-style-type:none;
}
/* MouseOut state (default) - create and position a space for the larger images and
hide them*/
#col-1 a img.hid { width: 250px; height:340px; position: absolute; top: 10px; left: 400px; visibility: hidden;
}
/* MouseOver state (hover)- reveal larger picture */
#col-1 a:hover { background: white;
}
#col-1 a:hover img.hid { visibility:visible;
}
/*----------------------------------------------------*/
/* Set 2nd column of thumbnails 85px further over to right*/
#col-2 { position: absolute; top: 0; left: 85px; width:135px;
}
li { margin: 5px; list-style-type:none;
}
/* MouseOut state (default) - hide larger picture */
#col-2 a img.hid { width: 350px; height:265px; position: absolute; top: 10px; left: 315px; margin-left:0; visibility: hidden;
}
/* MouseOver state (hover)- reveal larger picture */
#col-2 a:hover { background: white;
}
#col-2 a:hover img.hid { visibility:visible;
}
/*----------------------------------------------------*/
/* Set 3rd column of thumbnails 170px further over to right*/
#col-3 { position: absolute; top: 0; left: 230px; width:108px;
}
li { margin: 5px; list-style-type:none;
}
/* MouseOut state (default) - hide larger picture */
#col-3 a img.hid { width: 260px; height:260px; position: absolute; top: 10px; left: 175px; margin-left:0; visibility: hidden;
}
/* MouseOver state (hover)- reveal larger picture */
#col-3 a:hover { background: white;
}
#col-3 a:hover img.hid { visibility:visible;
}
</style>
</head>
<body>
<header>
<h1>A full page roll-over gallery of greetings, cards, e.t.c.</h1>
<h2>Hover the mouse over a small picture to see an enlarged version</h2>
</header>
<nav>
<ul>
<li class="btn"><a href="gallery-one-col.html">Page Two</a></li>
<li class="btn"><a href="gallery-2col.html">Page Three</a></li>
<li class="btn"><a href="gallery-3col-mix.html">Page Four</a></li>
<li class="btn"><a href="gallery-page-validated.html">gHome Page</a></li>
</ul>
</nav>
<div id="rightcol">
Secondary information<br><br>
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/html/logo/img/mark-word-icon.png" width="64" height="64" alt="Validated HTML5" title="Validated HTML5"></a>
</p>
<p>
<a href="http://jigsaw.w3.org/css-validator/"><img src="images/vcss-blue.gif" width="88" height="31" title="Valid CSS!" alt="Valid CSS!"></a>
<span class="small"><br><br>
Markup Validated by the World Wide Web Consortium
</span>
</p>
<br class="clear">
<p class="advert">
Web Design by Orris Baker
</p>
</div>
<div id="midcol">
<div id="gallery-block
<ul id="col-1">
<li><a href="#"><img src="images/alithumb.jpg" title="Ali" alt="Ali"><img class="hid" src="images/alilarge.jpg" alt=""></a></li>
<li><a href="#"><img src="images/catthumb.jpg" title="Cat" alt="Cat"><img class="hid" src="images/catlarge.jpg" alt=""></a></li>
<li><a href="#"><img src="images/beachthumb.jpg" title="Beach" alt="Beach"><img class="hid" src="images/beachlarge.jpg" alt=""></a>
</li>
</ul>
<ul id = "col-2">
<li><a href="#"><img src="images/childrenthumb.jpg" title="Children" alt="Children"><img class="hid" src="images/childrenbig.jpg" alt=""></a></li>
<li><a href="#"><img src="images/seathumb.jpg" title="Seascape" alt="Seascape"><img class="hid" src="images/seabig.jpg" alt=""></a></li>
<li><a href="#"><img src="images take-cardthumb.jpg" title="Take a card" alt="Take a card"><img class="hid" src="images/take-cardbig.jpg" alt=""></a></li>
</ul>
<ul id = "col-3">
<li><a href="#"><img src="images/walesthumb.jpg" title="Wales" alt="Wales"><img class="hid" src="images/walesbig.jpg" alt=""></a></li>
<li><a href="#"><img src="images/pensthumb.jpg" title="Chelsea pensioners" alt="Chelsea pensioners"><img class="hid" src="images/pensbig.jpg" alt=""></a></li>
</ul><br class="clear">
</div><!--gallery block closed-->
</div><!--midcol closed-->
<footer>
Footer goes here
</footer>
</body>
</html>