I’m trying to implement a 13px high bar that runs the full width of the browser window and sits on top of the following wrapper div. Works great in FF2 and 3 but in IE6 and 7 the bar begins at the left edge of the wrapper div then extends beyond the right edge of the wrapper div. Attached are 2 screenshots (one from FF2 - how I want it to look, and one fro IE7).
Heres my code:
XHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Test Page</title>
<link rel='stylesheet' type='text/css' media='screen' href='test.css'>
</head>
<body>
<div class="searchspan"></div>
<div class="wrap"></div>
</body>
</html>and CSS
body {
background: #bbb;
margin: 0;
padding: 0;
width: 100;
}
.searchspan {
width:100%;
height: 13px;
background: url(top_image_a.png);
background-repeat: repeat-x;
position:absolute;
}
.wrap {
width:902px;
margin: 0 auto;
height: 50px;
border-left: 1px solid #dddddd;
border-right: 1px solid #dddddd;
border-bottom: 1px solid #dddddd;
background-color: #fff;
}Any ideas? Thanks!