Web designers Only HTML Help?

  • Thread starter Thread starter Zebra Z
  • Start date Start date
Z

Zebra Z

Guest
How do i centre the following code so that it appears in the centre of the page?

and how do i add another get five more images to appear under this

Thanks
<div style="text-align: center;"> it dosent work
<html>

<head>
<style type="text/css">
h1 {color: FF00FF}
p {color: rgb(000000)}
</style>
</head>

<body>
<h1>Best Sellers</h1>
<p>Limitd Period Sale Now On</p><br><br><br><br>
</body>

</html>


<html>
<head>
<style type="text/css">
div.img
{
margin: 2px;
border: 1px solid #9900FF;
height: auto;
width: auto;
float: left;
text-align: center;
}
div.img img
{


}
div.img a:hover img {border: 1px solid #0000ff;}
div.desc
{
text-align: center;
font-weight: normal;
width: 120px;
margin: 2px;
}
</style>
</head>
<body>

<div class="img">
<a target="_blank" href="klematis2_big.htm"><img src="Cliff Richard.jpg" alt="Cliff Richard" width="110" height="90" /></a>
<div class="desc">Price: £19.99 <br>Cliff Rich's Newly Released DVD </div>
</div>

<div class="img">
<a target="_blank" href="klematis2_big.htm"><img src="Viva La Diva.jpg" alt="Viva La Diva" width="110" height="90" /></a>
<div class="desc">Price: £14.99 <br> <br>Viva La Diva </div>
</div>
<div class="img">
<a target="_blank" href="klematis3_big.htm"><img src="Take that.jpg" alt="Take Thtat" width="110" height="90" /></a>
<div class="desc">Price: £11.15 Limited Offer<br> Take That </div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"><img src="Sampson.jpg" alt="George Sampson" width="110" height="90" /></a>
<div class="desc"> Only £5.90 George Sampson <br><br> </div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"><img src="Kylie.jpg" alt="Kylie" width="110" height="90" /></a>
<div class="desc">Price: Only £14.99 <br><br> Kylie Minogue</div>
</div>
 
Back
Top