Hey Everyone,
I want to replace the following code with it's DIV equivalent.
<body>
<div id="container">
<div id="header">
<table width="901" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" style="padding-left:20px"><img src="images/thinktankname.png" alt="Think Tank for African American Progress" /></td>
</tr>
<tr style="padding-bottom:20px">
<td style=" padding-right:10px"><img src="images/thinktanklogo.png" alt="think thank logo" /></td>
<td><img src="images/thinktank.jpg" width="657" height="194" /></td>
</tr>
</table>
</div>
</div>
</body>
When I tried two floating divs the images are in the right spots but the background color of the containing div doesn't show behind them. I get 2 different incorrect results from both IE and Firefox.
<body>
<div id="container">
<div id="header">
<div><img src="images/thinktankname.png" /></div>
<div style="float:left"><img src="images/thinktanklogo.png" alt="logo" /></div>
<div style="float:right"><img src="images/thinktank.jpg" /></div>
</div>
</div>
</body>
Here is some of the CSS:
body{
background:#faca0a;
background-repeat:repeat-x;
background-image:url(images/background.jpg);
background-position: top;
}
div#container{
font-family:Arial, Helvetica, sans-serif;
font-size:10pt;
color:#660033;
margin-left:50px;
margin-right:50px;
padding:0px;
background-color: #660066;
text-align: justify;
top: 0px;
}
#header {
padding-left: 20px;
padding-bottom: 10px;
}