Ok, attached are screenshots of the original page and the "simplified" version I came up with. The main differences here are:
- Far LESS use of nested tables
- More use of CSS styling for element placement
Keep in mind, this HTML
is not polished and if I were doing this for a site I was actually going to deploy, I would move all of the inline CSS to an external stylesheet to make the HTML more readable, etc. The purpose of this is to demonstrate how the severe nesting of tables in the original HTML file isn't really necessary. My HTML DOES use a HTML table for the main, three column layout.
leeuniverse, in your case I would start with a "fresh" table with 5 rows and 3 columns and fill that in with your graphic content. I didn't use any of the "spacer" images and the text won't look right since I didn't bring over any of your styling for fonts, etc.
Here is the HTML:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Business Consulting template</title>
<style type="text/css">
.nav img {
padding-left: 5px;
}
body {
margin-top: 0px;
padding-top: 0px;
}
.service-table {
font-family: Arial,Helvetica,sans-serif;
font-size: small;
margin-top: 10px;
}
.service-table p {
margin: 0px;
padding: 0px;
display: block;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
font-size: x-small;
font-weight: bold;
}
</style>
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(118, 118, 118);" alink="#000099" link="#000099" vlink="#990099">
<table style="width: 705px; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="background-image: url(home_files/header00.jpg); background-repeat: no-repeat; height: 323px; vertical-align: top; background-position: center top; text-align: left; width: 545px;" colspan="2">
<div style="display: block; margin-top: 170px; margin-left: 25px;"><img style="width: 146px; height: 19px;" alt="Home" src="home_files/m1m00000.jpg"><br>
<img style="width: 146px; height: 19px;" alt="About us" src="home_files/m2000000.jpg"><br>
<img style="width: 146px; height: 19px;" alt="Services" src="home_files/m3000000.jpg"><br>
<img style="width: 146px; height: 19px;" alt="Solutions" src="home_files/m4000000.jpg"><br>
<img style="width: 146px; height: 19px;" alt="Contact Us" src="home_files/m5000000.jpg"></div>
</td>
<td style="background-image: url(home_files/bgr_top0.jpg); background-repeat: repeat-x; vertical-align: top; background-color: rgb(222, 226, 229); width: 171px;">
<div style="display: block; float: right; padding-top: 10px;" class="nav"><a href="mailto:email@address.com?subject=Message%20from%20website"><img title="E-mail us" style="border: 0px solid ; width: 17px; height: 14px;" alt="mail" src="home_files/mail0000.jpg"></a><a href="#"><img title="Site map" style="border: 0px solid ; width: 17px; height: 14px;" alt="sitemap" src="home_files/sitemap0.jpg"></a><a href="home.html"><img title="Home page" style="border: 0px solid ; width: 17px; height: 14px;" alt="home" src="home_files/home0000.jpg"></a></div>
<div style="display: block; padding-top: 55px; padding-bottom: 1.42em;">
<input style="height: 10px;" size="15" name="search" value="SITE SEARCH"> <img style="width: 25px; height: 18px; display: inline; margin-left: 2px;" alt="go button" title="Search Now!" src="home_files/go000000.jpg"></div>
<div style="background-image: url(home_files/bgr10000.jpg); background-repeat: repeat-y; display: block;">
<div style="border-top: 1px solid silver; border-bottom: 1px solid silver; text-align: center; display: block; margin-right: auto; margin-left: auto; position: relative; width: 161px; height: 216px;"><img style="border-bottom: 1px solid rgb(153, 153, 153); width: 126px; height: 10px; display: block; margin-right: auto; margin-left: auto; padding-bottom: 10px; padding-top: 15px;" alt="News and Events" src="home_files/a1_news0.jpg"><img style="width: 120px; height: 46px; display: block; margin-right: auto; margin-left: auto; padding-top: 12px;" alt="Faces" src="home_files/a2_pic00.jpg">
<p style="font-family: Tahoma,arial,geneva; color: rgb(112, 112, 112); font-size: x-small; text-align: left; display: block; margin-left: 20px;"><a style="text-decoration: none; color: rgb(112, 112, 112);" href="#"><span style="font-weight: bold;">December
10, 10</span></a><br>
Lorem ipsum dolor sit amet consectetuer adscing elit</p>
<div style="text-align: left;"><img style="width: 64px; height: 5px; display: block; margin-top: 12px; margin-left: 20px;" alt="Read more" src="home_files/more0000.jpg"><img style="width: 120px; height: 1px; margin-left: 20px;" alt="divider" src="home_files/line_c10.jpg"><br>
<img style="width: 92px; height: 7px; display: block; padding-top: 9px; margin-left: 20px;" alt="Read more news" src="home_files/a3_more0.jpg"></div>
</div>
</div>
</td>
</tr>
<tr>
<td style="vertical-align: top; height: 4px; background-color: rgb(222, 226, 229);" colspan="3"><img style="width: 705px; height: 4px; display: block;" alt="divider" src="home_files/divider.jpg"></td>
</tr>
<tr>
<td style="width: 185px;">
<div style="border: 4px solid rgb(223, 228, 231); display: block; width: 185px; background-image: url(home_files/bgrzag12.jpg); background-repeat: no-repeat; background-color: white; height: 187px;"><img style="width: 117px; height: 13px; display: block; margin-top: 18px; margin-left: 15px; margin-bottom: 0px; padding-bottom: 0px;" alt="Our Services" src="home_files/a4_serv2.jpg">
<div style="border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); display: block; margin-top: 0px; padding-top: 15px;">
<div style="border-left: 1px solid rgb(102, 102, 102); display: block; float: right; width: 105px; text-align: center;">
<p style="margin-top: 0px; margin-bottom: 0px;"><strong>1.</strong><a href="#">Lorem
ipsu</a><br>
<strong>2. </strong><a href="#">Consectet</a>
</p>
</div>
<img style="width: 36px; height: 29px; display: block; margin-left: 15px;" alt="Logo" src="home_files/a5_pic02.jpg"></div>
<div style="border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); display: block; text-align: center;">
<img style="width: 142px; height: 1px;" alt="divider" src="home_files/line_c22.jpg">
<table class="service-table" style="width: 142px; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td style="width: 5px; background-color: rgb(205, 205, 205);"> </td>
<td style="background-color: rgb(234, 234, 234);">
<p> <a href="#">LOREM IPSUM</a></p>
</td>
<td style="width: 32px; background-color: rgb(234, 234, 234); vertical-align: top; text-align: center;"> <img style="width: 7px; height: 5px;" alt="arrows" src="home_files/a6_stren.jpg"></td>
</tr>
<tr>
<td style="background-color: rgb(234, 234, 234);"> </td>
<td style="background-color: rgb(234, 234, 234);">
<p> <a href="#">CONSECTETUER</a></p>
</td>
<td style="background-color: rgb(234, 234, 234); text-align: center;"> <img style="width: 7px; height: 5px;" alt="arrows" src="home_files/a6_stren.jpg"></td>
</tr>
<tr>
<td style="background-color: rgb(234, 234, 234);"> </td>
<td style="background-color: rgb(234, 234, 234);">
<p> <a href="#">MAURIS URNA</a></p>
</td>
<td style="background-color: rgb(234, 234, 234); text-align: center;"> <img style="width: 7px; height: 5px;" alt="arrows" src="home_files/a6_stren.jpg"></td>
</tr>
</tbody>
</table>
</div>
</div>
</td>
<td style="background-color: rgb(220, 224, 227); vertical-align: top;">
<div style="border: 1px solid silver; background-image: url(home_files/bgrzag_4.jpg); background-repeat: no-repeat; display: block; margin-top: 3px; height: 187px; background-color: white;"><img style="width: 267px; height: 13px; display: block; margin-top: 20px; margin-left: 22px;" alt="Welcome to our website" src="home_files/a7_welc1.jpg"><br>
<div style="text-align: center;">
<p style="display: block; float: right; width: 210px; margin-right: 5px; margin-top: 0px; padding-top: 0px; top: 0px; font-size: small;"><a href="" class="text"><strong>Lorem
ipsum dolor sit amet,</strong></a> et diam set consectetuer
adipi scing elit. tincidunt.quis, libero. Aenean sit.<br>
<a href="#"><img src="home_files/a8_more1.jpg" border="0" height="5" width="178"></a></p>
<div style="text-align: center;"><img style="width: 98px; height: 58px; display: block; margin-left: 20px;" alt="Photo" src="home_files/a8_pic01.jpg">
<img style="width: 299px; height: 1px; display: block; margin-top: 20px; margin-right: auto; margin-left: auto;" alt="divider" src="home_files/a9_line1.jpg">
<p style="margin-left: 21px; width: 297px; font-size: small; text-align: justify;"><a href="#" class="text"><strong>Lorem ipsum dolor
sit amet,</strong></a>
urna urna, varius et, diam interdum tincidunt quis. libero. Aenean sit
amturpis. </p>
</div>
</div>
</div>
</td>
<td style="text-align: center; background-color: rgb(220, 224, 227);"><a href="#"><img style="border: 0px solid ; width: 163px; height: 187px; display: block; margin-right: auto; margin-left: auto;" alt="Best customer support" src="home_files/ban00001.jpg"></a></td>
</tr>
<tr>
<td colspan="3" style="background-image: url(file:///D:/techguy/leeuniverse/home_files/bgr_dowp.jpg); background-repeat: repeat-x;">
<p style="margin-top: 24px; font-size: small;" class="menu" align="center"><span class="menul">Home</span> | <a href="http://www.leeuniverse.org/test2/html/index-1.html">About
Us</a> | <a href="http://www.leeuniverse.org/test2/html/index-2.html">Services</a> | <a href="http://www.leeuniverse.org/test2/html/index-3.html">Solutions</a> | <a href="http://www.leeuniverse.org/test2/html/index-4.html">Contact
Us</a></p>
<p style="margin-top: 4px; font-size: small;" class="copy" align="center">© All rights reserved. Your company name.
2006. <a href="" class="copy">Privvacy policy</a>
| <a href="" class="copy">Terms of use</a></p>
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html> Here is the HTML table I started out with:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title></title>
</head>
<body>
<table
style="width: 705px; text-align: left; margin-left: auto; margin-right: auto;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</tbody>
</table>
</body>
</html> The browser screenshots are Safari 3.1.2 on Windows XP. I also posted a screenshot of the HTML table I started out with as viewed in Kompozer.
Peace...