I read How to make div not larger than its contents?, but don't understand, can it work in IE7? I've tried this, but it doesn't work. For other browsers it works. I need header be the same width as content.
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#innerdiv {
display: inline-block;
*display: inline;
zoom: 1;
}
#header {
border: 1px solid #000000;
}
#content {
border: 1px solid #008000;
}
</style>
</head>
<body>
<div id="innerdiv">
<table id="header" width="100%">
<tr>
<td>
<div style="width:400px; height:50px"></div>
</td>
</tr>
</table>
<table id="content" width="100%">
<tr>
<td>
<div style="width:1380px; height:50px"></div></td>
</tr>
</table>
</div>
</body>
</html>