Give this a try.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<!--
COMMENTS:
1. Images used:
photos/texture.jpg
photos/photo4.jpg
2. Image responds to Vertical resizing of window.
3. SWAG Home text aligns at left edge of image.
4. Photocredit text aligns at right edge of image.
5. All of the css for this demo is on this page.
6. Sticky Footer puts the "Prev" and "Next" buttons at the bottom of the viewport.
Buttons can overlay the image if screen height is sufficiently reduced.
7. SWAG Home text is a bit jumpy in FF when page is resized; smooth in IE8.
-->
<head>
<title>Stop Wilton Airport Group - photo4X</title>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css;">
<style type="text/css">
body {
background-color:#101010;
background-image:url('photos/texture.jpg');
color:white;
font-size:100%;
font-family:"Times New Roman", Times, serif;
text-align:center;
}
html, body {
height:100%;
margin:0;
padding:0;
}
h1 {
border-top:36px solid #fff; /* part of "sticky footer" */
font-weight:bold;
font-size:2em;
line-height:40px;
font-family:Impact, "Arial Black", sans-serif;
font-style:normal;
padding:5px 0px 0px;
margin:0px;
}
.outer {
height:100%;
margin-top:-36px; /* part of "sticky footer" */
}
a {
border:1px solid #888;
border-radius:6px;
font-size:0.8em;
line-height:100%;
font-family:Arial;
text-decoration:none;
padding:2px 12px 3px;
margin:0px;
}
.linkhome a {
border:none;
padding-left:0px;
}
a:link {color:#cccccc;}
a:visited {color:#cccccc;}
a:hover {
color:yellow;
text-decoration:underline;
}
a + a {margin-left:120px;}
img {
height:70%;
padding-top:24px;
padding-bottom:5px;
}
.scene {
position:relative;
word-spacing:-.35em;
}
.linkhome {
display:block;
position:absolute;
left:0px;
word-spacing:normal;
}
.photocredit800 {
display:block;
position:absolute;
right:0px;
color:#999;
font-size:1em;
word-spacing:normal;
}
.footer {
height:36px; /* part of "sticky footer */
text-align:center;
position:relative; /* positions "Prev" and "Next" buttons above image */
}
</style>
</head>
<body>
<div class="outer">
<h1>Stop Wilton Airport</h1>
<span class="scene">
<span class="linkhome"><a href="#">SWAG Home page</a></span>
<img src="photos/photo4.jpg" alt="">
<span class="photocredit800">Misty woods near Wilton, photo: Fiona Bullivant</span>
</span>
</div>
<div class="footer">
<a href="photo3.htm">Previous</a>
<a href="photo5.htm">Next</a>
</div>
</body>
</html>
Bookmarks