The biggest problem here is you are trying to align unrelated objects, possibly still thinking in table-layout terms. With a site like this, an overall fixed-width and centred wrapper div around everything will constrain contents and make things much easier to align. The left shadow can then be applied as a background to the wrapper so it extends all the way with no breaks in continuity - the top part can be hidden with a background colour on the #header div.
While I am at it, I will address a few other issues on the way down. There are a number of unnecessary divs here - if there is only one thing inside a div, it is a good bet that the div is not required and the styling can be directly applied to the contained element. Any graphical text should be marked up as actual text, and the text can be replaced by the image in the css - this includes the company logo, menu links etc. As such, the logo can be simple a <h1> header, the menu <ul> can be styled without a containing div, the banner can contain text describing the purpose of the banner with the image as a background, and the title bar can be a <h2> heading indicting the title of the page. The various content text boxes are probably better defined as classes to allow more than one use, and the content images can be styled directly without a containing div.
Try this version of the html :
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
<meta name="Keywords" content="">
<meta name="Description" content="">
<style type="text/css">
<!--
@import url("layout4.css");
-->
</style>
</head>
<body id="pghome">
<div id="wrapper">
<div id="header">
<h1>Company Name</h1>
<ul id="menu">
<li class="menu_home"><a href="index.html">Home</a></li>
<li class="menu_about"><a href="about.html">About</a></li>
<li class="menu_products"><a href="product.html">Products</a></li>
<li class="menu_devices"><a href="devices.html">Devices</a></li>
<li class="menu_contact"><a href="contact.html">Contact</a></li>
</ul>
</div>
<div class="banner">Banner description here</div>
<h2>HOME</h2>
<div id="content">
<div class="box2">
<p>Etiam dolore nemo consequat. Aspernatur aut odit aut fugit, sed quia consequuntur magni dolores.</p>
<p>Veritatis et quasi architecto beatae vitae dicta sunt, lorem ipsum dolor sit etiam dolore nemo consequat.</p>
<p> Aspernatur aut odit aut fugit, sed quia consequuntur magni dolores</p>
</div>
<img src="images/main_images.jpg" alt="" width="295" height="203" class="box3" title="image description">
</div>
<div id="footer">
<a href="index.html">HOME</a> |
<a href="about.html">ABOUT</a> |
<a href="product.html">PRODUCTS</a> |
<a href="devices.html">DEVICES</a> |
<a href="contact.html">CONTACT</a>
</div>
<div id="bottom"></div>
</div>
</body>
</html>
The css follows next post (in case it exceeds post limit)
Bookmarks