This code currently works for all modern browsers instead of IE6/IE7. Any advice? I can't absolutely positioned any of this: all of it needs to be adaptable to content. Again, I believe this works perfectly in modern browsers.
http://www.webdevout.net/test?02h&raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Test</title>
<style type="text/css">
body { padding: 0; margin: 0; }
#first { background: blue; padding: 0px 25px 25px 25px; margin-bottom: -10px; position; relative; z-index: 7; }
#second { background: #DDD; border: 1px dashed gray; height: 200px; position: relative; z-index: 8; display: block; }
#precedence { float: right; height: 40px; width: 40px; background-color: #f09; z-index: 9; position: relative; }
</style>
</head>
<body>
<div id="first">
<div id="precedence"></div>
</div>
<div id="second"></div>
</body>
</html>
- Again, this cannot use absolute positioning.