jasonpc1
09-13-2010, 08:12 PM
I have tried and keep deleting the file and starting again, i just can not get the background to be in the center or the header part inside the body box, just a complete mesh up on my part.
I found these templates a few years ago and would like to know how to convert this to css as it is all using tables which i do not want to use and i hear they are bad to use.
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html;">
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="756" height="291" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="134" height="1" bgcolor="#7E8079"><img src="images/spacer.gif" width="134" height="1" border="0"></td>
<td width="15" height="1"><img src="images/spacer.gif" width="15" height="1" border="0"></td>
<td width="44" height="1"><img src="images/spacer.gif" width="44" height="1" border="0"></td>
<td width="309" height="1"><img src="images/spacer.gif" width="309" height="1" border="0"></td>
<td width="142" height="1"><img src="images/spacer.gif" width="17" height="1" border="0"></td>
<td width="156" height="1"><img src="images/spacer.gif" width="121" height="1" border="0"></td>
</tr>
<tr>
<td colspan="3" bgcolor="#000018" background="images/back-navy.gif" width="193" height="119"><img name="index_r1_c1" src="images/index_r1_c1.gif" width="193" height="118" border="0"></td>
<td colspan="3" bgcolor="#000018" valign="top" background="images/back-navy.gif" width="577" height="119">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="98%" id="AutoNumber4">
<tr>
<td width="55%" style="border-style: none; border-width: medium">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber5" height="119">
<tr>
<td width="100%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top: medium none #111111; border-bottom: medium none #111111" height="117">
<p style="margin-left: 14"><b> <font face="Verdana" size="6" color="#FFFFFF">Title</font></b></td>
</tr>
</table>
</td>
<td width="45%" style="border-style: none; border-width: medium">
<p align="center"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6" bgcolor="#7E8079" width="770" height="19">
<p align="right" style="margin-right: 7"> </td>
</tr>
<tr>
<td rowspan="2" bgcolor="#7E8079" valign="top" width="134" height="140">
<!--
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="81%" id="AutoNumber1" height="133">
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17">
</td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#555652">
<p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Main
Menu</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
</table>
</center>
</div>
-->
</td>
<td align="left" valign="top" height="1" bgcolor="#DCDDDB" width="15"><img name="index_r3_c2" src="images/index_r3_c2.gif" width="15" height="18" border="0"></td>
<td colspan="2" bgcolor="#DCDDDB" valign="top" width="353" height="1">
<p style="margin-top: 0; margin-bottom: 0"></td>
<td align="right" valign="top" height="1" bgcolor="#DCDDDB" width="142"><img name="index_r3_c5" src="images/index_r3_c5.gif" width="17" height="18" border="0"></td>
<td rowspan="2" bgcolor="#7E8079" valign="top" height="140" width="156">
<!--
<div align="center" style="width: 156; height: 259">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="90%" id="AutoNumber2" height="1">
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17">
</td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#555652">
<p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Link
/ News Box</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="89%" id="AutoNumber3">
<tr>
<td width="100%" style="border-style: none; border-width: medium" bgcolor="#555652">
<p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Text
Box</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" bgcolor="#DCDDDB">
<p style="margin-left: 4; margin-right: 4; margin-top: 1; margin-bottom: 4">
<font face="Verdana" size="1" color="#555652">Use this box to type any
specials, new updates or even gallery pics here.</font></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
</center>
</div>
-->
</td>
</tr>
<tr>
<td colspan="4" bgcolor="#DCDDDB" valign="top" width="510" height="246">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber6">
<tr>
<td width="100%" style="border-style: none; border-width: medium">
<p align="center"><b><font face="Verdana" size="4" color="#333333">Welcome</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium">
<p style="margin: 0 14; ">
<p style="margin: 0 14; ">
<p style="margin: 0 14; ">
<p style="margin: 0 14; ">Our site is in developement and will
be live shortly.<font face="Verdana" size="2" color="#333333">
</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6" bgcolor="#7E8079" width="770" height="12">
</td>
</tr>
<tr>
<td colspan="6" bgcolor="#000018" background="images/back-navy.gif" width="770" height="12">
<p align="center" style="margin-top: 4; margin-bottom: 4">
<FONT
face=Verdana color=#FFFFFF size=1>footer</FONT></td>
</tr>
</table>
</center>
</div>
</body>
</html>
I found these templates a few years ago and would like to know how to convert this to css as it is all using tables which i do not want to use and i hear they are bad to use.
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html;">
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="756" height="291" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="134" height="1" bgcolor="#7E8079"><img src="images/spacer.gif" width="134" height="1" border="0"></td>
<td width="15" height="1"><img src="images/spacer.gif" width="15" height="1" border="0"></td>
<td width="44" height="1"><img src="images/spacer.gif" width="44" height="1" border="0"></td>
<td width="309" height="1"><img src="images/spacer.gif" width="309" height="1" border="0"></td>
<td width="142" height="1"><img src="images/spacer.gif" width="17" height="1" border="0"></td>
<td width="156" height="1"><img src="images/spacer.gif" width="121" height="1" border="0"></td>
</tr>
<tr>
<td colspan="3" bgcolor="#000018" background="images/back-navy.gif" width="193" height="119"><img name="index_r1_c1" src="images/index_r1_c1.gif" width="193" height="118" border="0"></td>
<td colspan="3" bgcolor="#000018" valign="top" background="images/back-navy.gif" width="577" height="119">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="98%" id="AutoNumber4">
<tr>
<td width="55%" style="border-style: none; border-width: medium">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber5" height="119">
<tr>
<td width="100%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top: medium none #111111; border-bottom: medium none #111111" height="117">
<p style="margin-left: 14"><b> <font face="Verdana" size="6" color="#FFFFFF">Title</font></b></td>
</tr>
</table>
</td>
<td width="45%" style="border-style: none; border-width: medium">
<p align="center"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6" bgcolor="#7E8079" width="770" height="19">
<p align="right" style="margin-right: 7"> </td>
</tr>
<tr>
<td rowspan="2" bgcolor="#7E8079" valign="top" width="134" height="140">
<!--
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="81%" id="AutoNumber1" height="133">
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17">
</td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#555652">
<p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Main
Menu</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
</table>
</center>
</div>
-->
</td>
<td align="left" valign="top" height="1" bgcolor="#DCDDDB" width="15"><img name="index_r3_c2" src="images/index_r3_c2.gif" width="15" height="18" border="0"></td>
<td colspan="2" bgcolor="#DCDDDB" valign="top" width="353" height="1">
<p style="margin-top: 0; margin-bottom: 0"></td>
<td align="right" valign="top" height="1" bgcolor="#DCDDDB" width="142"><img name="index_r3_c5" src="images/index_r3_c5.gif" width="17" height="18" border="0"></td>
<td rowspan="2" bgcolor="#7E8079" valign="top" height="140" width="156">
<!--
<div align="center" style="width: 156; height: 259">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="90%" id="AutoNumber2" height="1">
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17">
</td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#555652">
<p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Link
/ News Box</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" height="17" bgcolor="#DCDDDB">
<p style="margin: 1 4"><font face="Verdana" size="2" color="#555652">
Your Link</font></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="89%" id="AutoNumber3">
<tr>
<td width="100%" style="border-style: none; border-width: medium" bgcolor="#555652">
<p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Text
Box</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium" bgcolor="#DCDDDB">
<p style="margin-left: 4; margin-right: 4; margin-top: 1; margin-bottom: 4">
<font face="Verdana" size="1" color="#555652">Use this box to type any
specials, new updates or even gallery pics here.</font></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
</center>
</div>
-->
</td>
</tr>
<tr>
<td colspan="4" bgcolor="#DCDDDB" valign="top" width="510" height="246">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber6">
<tr>
<td width="100%" style="border-style: none; border-width: medium">
<p align="center"><b><font face="Verdana" size="4" color="#333333">Welcome</font></b></td>
</tr>
<tr>
<td width="100%" style="border-style: none; border-width: medium">
<p style="margin: 0 14; ">
<p style="margin: 0 14; ">
<p style="margin: 0 14; ">
<p style="margin: 0 14; ">Our site is in developement and will
be live shortly.<font face="Verdana" size="2" color="#333333">
</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6" bgcolor="#7E8079" width="770" height="12">
</td>
</tr>
<tr>
<td colspan="6" bgcolor="#000018" background="images/back-navy.gif" width="770" height="12">
<p align="center" style="margin-top: 4; margin-bottom: 4">
<FONT
face=Verdana color=#FFFFFF size=1>footer</FONT></td>
</tr>
</table>
</center>
</div>
</body>
</html>