Div element positioning

Dear All,
I have problem here I have two div as below

[CODE <div id=“left” style=“top:0px;left:0px; width:150px;”>
<div id=“title1” style=“top:auto;left:0px; padding: 4px; overflow: auto; background-color: #8EB4E3;”>
<table border=“0” cellspacing=“0” cellpadding=“0”>
<tr>
<td></td>
</tr>

		        &lt;tr&gt;
		        &lt;td&gt;OUR SYSTEM&lt;/td&gt;&lt;td width="11%" height="10"&gt;&lt;div align="right"&gt;&lt;img src="../fleet/images/logos/&lt;?=$fleetID?&gt;.png" width="100" height="50" /&gt;&lt;/div&gt;&lt;/td&gt;
		        &lt;/tr&gt;
		        &lt;/table&gt;
          &lt;/div&gt;

</div>
<div id=“right” style=“top:0px;left:250px; width:800px; height:100%”>Map goes here.
</div>


The problem I am having is that when the div id="left" does not have any inner div then the right div where it contains map is at 0px. But the moment I put id="title1"  in the div id="left" then the map in div id="right" does not stay at the top 0px and it goes down by quite many pixels. Any solution to this please? Thank you.

Works with this:

(you should check the CSS/html forums, for laying out DIVs)




<html>
<head>
<title></title>
 
<style>

#left { float: left; width: 150px; }
#right { float: left; width:800px; height:100%; }

/* 
 you can add the following
 display: block; or dispay: inline;
 you can position relative to tags above, or position absolute to the viewport, or to the tags that are relative.
 position: absolute; position: relative;
*/  

#title1 { padding: 4px; overflow: auto; background-color: #8EB4E3; }


</style>
</head>
<body>

  


<div id="left">
<div id="title1">

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>

<tr>
<td>OUR SYSTEM</td><td width="11%" height="10">
<div align="right"><img src="../fleet/images/logos/<?=$fleetID?>.png" width="100" height="50" /></div>
</td>
</tr>
</table>

</div>
</div>

<div id="right">Map goes here.</div>

</body>
</html>


Is it kind of style/align problem?
You want a solution by javascript? Or rather a css solution?

Dear Bulevardi,
I dont mind as long any method works. Thank you.