effpeetee
05-26-2007, 03:56 PM
Hello friends,
I have been unable to find what I need to do to get the picture captions centred to the picture. Would some kind coder please help?
Page address - http://www.exitfegs.co.uk/nine.html
Here is the HTML code for page nine:-
<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Effpeetee's Photo Gallery</title>
<link rel="stylesheet" type="text/css" href="cssstyle.css" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="A page of family photos." />
</head>
<body>
<a href="index.html"><img alt="Back Home." src="home.jpg" width="85" height="42" /></a>
<div id="container">
<ul class="pics">
<li><a href="Steven2.html"><img alt="Family photos" src="YoungSteve.jpg" /></a>Young Steven.</li>
<li><a href="HonW.html"><img alt="Family photos" src="web20.jpg" /></a>Hay-on-Wye.</li>
<li><a href="Glider.html"><img alt="Family photos" src="Glider.jpg" /></a>Frank in a glider - Wartime ATC.</li>
<li><a href="twoc.html"><img alt="Family photos" src="web3.jpg" /></a>Betty and Frank - Arlesford.</li>
<li><a href="Mum.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="web14.jpg" /></a>Frank's mum.</li>
<li><a href="Steve3.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="steve-01.jpg" /></a>Steven.</li>
<li><a href="FSin.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="EdPortrait2.jpg" /></a>Sister Edna.</li>
<li><a href="web19large.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="web19.jpg" /></a>Frank - 45 years ago.</li>
<li><a href="grandad.html"><img style="LEFT: 146px; WIDTH: 150px; HEIGHT: 150px" alt="Family photos" src="grandad.jpg" /></a>Frank's Dad.</li>
<li><a href="BSGroup.html"><img alt="Family photos" src="Bettyandsteve.jpg" /></a>Betty and Steven.</li>
<li><a href="web20large.html"><img alt="Family photos" src="Cus10006.jpg" /></a>Samantha and Philip.</li>
<li><a href="SteveandPhil.html"><img alt="Family photos" src="SteveandPhil.jpg" /></a>Steve and Philip.</li>
<li><a href="famgroup.html"><img alt="Family photos" src="web17.jpg" /></a>Fam.ly group.</li>
</ul>
<div class="clear"><!-- --></div>
</div>
</body>
</html>
This is the style sheet.
body {
font: "Lucida Grande", Tahoma, Verdana, sans-serif;
font-size:10px
font-weight:bold;
background: #000;
color: #FFF;
}
#container {
width: 728px;
margin: 0 auto;
}
.pics {
list-style-type: none;
}
.clear { /* clear the floats */
clear: both;
height: 0;
}
.pics li {
list-style: none;
float: left;
width: 162px;
margin: 0 10px 25px;
}
.pics img {
display: block;
width: 160px;
height: 120px;
border: 1px solid;
}
.pics2 img {
width: 120px;
height: 160px;
border: thin solid white;
display: block;
}
* { margin: 0; padding: 0; }
html { font: bold 62.5%/1.6 "Lucida Sans", "Lucida Grande", Tahoma, Geneva, Verdana, sans-serif; background: black; color: white; }
body{background:#555555}
A:link { color: white}
A:visited { color: white}
A:hover { color: orange}
A {text-decoration:none;font-family:"Arial Bold",sans-serif;}
height:100%;
overflow:hidden;
I have been unable to find what I need to do to get the picture captions centred to the picture. Would some kind coder please help?
Page address - http://www.exitfegs.co.uk/nine.html
Here is the HTML code for page nine:-
<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Effpeetee's Photo Gallery</title>
<link rel="stylesheet" type="text/css" href="cssstyle.css" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="A page of family photos." />
</head>
<body>
<a href="index.html"><img alt="Back Home." src="home.jpg" width="85" height="42" /></a>
<div id="container">
<ul class="pics">
<li><a href="Steven2.html"><img alt="Family photos" src="YoungSteve.jpg" /></a>Young Steven.</li>
<li><a href="HonW.html"><img alt="Family photos" src="web20.jpg" /></a>Hay-on-Wye.</li>
<li><a href="Glider.html"><img alt="Family photos" src="Glider.jpg" /></a>Frank in a glider - Wartime ATC.</li>
<li><a href="twoc.html"><img alt="Family photos" src="web3.jpg" /></a>Betty and Frank - Arlesford.</li>
<li><a href="Mum.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="web14.jpg" /></a>Frank's mum.</li>
<li><a href="Steve3.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="steve-01.jpg" /></a>Steven.</li>
<li><a href="FSin.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="EdPortrait2.jpg" /></a>Sister Edna.</li>
<li><a href="web19large.html"><img style="WIDTH: 120px; HEIGHT: 150px" alt="Family photos" src="web19.jpg" /></a>Frank - 45 years ago.</li>
<li><a href="grandad.html"><img style="LEFT: 146px; WIDTH: 150px; HEIGHT: 150px" alt="Family photos" src="grandad.jpg" /></a>Frank's Dad.</li>
<li><a href="BSGroup.html"><img alt="Family photos" src="Bettyandsteve.jpg" /></a>Betty and Steven.</li>
<li><a href="web20large.html"><img alt="Family photos" src="Cus10006.jpg" /></a>Samantha and Philip.</li>
<li><a href="SteveandPhil.html"><img alt="Family photos" src="SteveandPhil.jpg" /></a>Steve and Philip.</li>
<li><a href="famgroup.html"><img alt="Family photos" src="web17.jpg" /></a>Fam.ly group.</li>
</ul>
<div class="clear"><!-- --></div>
</div>
</body>
</html>
This is the style sheet.
body {
font: "Lucida Grande", Tahoma, Verdana, sans-serif;
font-size:10px
font-weight:bold;
background: #000;
color: #FFF;
}
#container {
width: 728px;
margin: 0 auto;
}
.pics {
list-style-type: none;
}
.clear { /* clear the floats */
clear: both;
height: 0;
}
.pics li {
list-style: none;
float: left;
width: 162px;
margin: 0 10px 25px;
}
.pics img {
display: block;
width: 160px;
height: 120px;
border: 1px solid;
}
.pics2 img {
width: 120px;
height: 160px;
border: thin solid white;
display: block;
}
* { margin: 0; padding: 0; }
html { font: bold 62.5%/1.6 "Lucida Sans", "Lucida Grande", Tahoma, Geneva, Verdana, sans-serif; background: black; color: white; }
body{background:#555555}
A:link { color: white}
A:visited { color: white}
A:hover { color: orange}
A {text-decoration:none;font-family:"Arial Bold",sans-serif;}
height:100%;
overflow:hidden;