1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Author" content="Stu Nicholls" />
<meta name="Keywords" content="Cascading, Style, Sheets, CSS1, CSS2, CSS, XHTML1.1, w3c, doing it with style, recommendations, opacity, box model, mozilla, opera, netscape, internet explorer, v6, v7.23, techniques, layout, three column, cutting edge, experimental, validation, validate, navigation, pop-up, pull-down, menus, tips, tricks, css mouseover, mouseovers, CSS Frames, CSS menu, CSS menus" />
<meta name="Description" content="CSS ~ Cutting edge Cascading Style Sheets. Experiments in CSS" />
<title> stu nicholls | CSS PLaY | emulating position fixed for Internet Explorer </title>
<style type="text/css">
body {margin: 0px;}
.oben {display:block; top:10px; z-index: 1; height: 50px; margin: auto; position:fixed; background: #a00000; color:#fff; }
.unten {display:block; height: 50px; bottom: 0px; position:fixed; background: #a00000;}
.mitte {display: block; overflow: show; position: relative; margin: 90px 0px 50px 0px; width: 680px; background: #0000a0;}
</style>
</head>
<body>
<div style="display: block; position: fixed; z-index: 1; width: 100%; background: #ffffff; height: 10px; top: 0px;"></div>
<div class="oben" style="margin: auto;">
<div style="float: left; background: url(slice_01.jpg); width: 680px; height: 80px;">Test</div><div style="width: 302px; height: 80px; float: right; background: url(slice_02.jpg);">Test</div><div style="clear: both;"></div>
</div>
<div class="mitte" style="background: url(slice_03.jpg);">
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
</div>
<div style="position: fixed; top: 90px; left: 680px; background: url(slice_04.jpg); width: 302px; height: 351px;">Test</div><div style="clear: both;"></div>
<div style="position: fixed; top: 441px; left: 680px; background: url(slice_05.jpg); width: 302px; height: 100%;">Test</div><div style="clear: both;"></div>
<div class="unten">
<div style="float: left; background: url(slice_06.jpg); width: 680px; height: 40px;">Test</div><div style="height: 40px; width: 302px; float: right; background: url(slice_07.jpg);">Test</div>
</div>
<div style="display: block; position: fixed; z-index: 1; width: 100%; background: #ffffff; height: 10px; bottom: 0px;"></div>
</body>
</html>
wie kann ich diesen Div Tag zentrieren! Gibt es da überhaupt ein Befehl?
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Author" content="Stu Nicholls" />
<meta name="Keywords" content="Cascading, Style, Sheets, CSS1, CSS2, CSS, XHTML1.1, w3c, doing it with style, recommendations, opacity, box model, mozilla, opera, netscape, internet explorer, v6, v7.23, techniques, layout, three column, cutting edge, experimental, validation, validate, navigation, pop-up, pull-down, menus, tips, tricks, css mouseover, mouseovers, CSS Frames, CSS menu, CSS menus" />
<meta name="Description" content="CSS ~ Cutting edge Cascading Style Sheets. Experiments in CSS" />
<title> stu nicholls | CSS PLaY | emulating position fixed for Internet Explorer </title>
<style type="text/css">
body {margin: 0px;}
.oben {display:block; top:10px; z-index: 1; height: 50px; margin: auto; position:fixed; background: #a00000; color:#fff; }
.unten {display:block; height: 50px; bottom: 0px; position:fixed; background: #a00000;}
.mitte {display: block; overflow: show; position: relative; margin: 90px 0px 50px 0px; width: 680px; background: #0000a0;}
</style>
</head>
<body>
<div style="display: block; position: fixed; z-index: 1; width: 100%; background: #ffffff; height: 10px; top: 0px;"></div>
<div class="oben" style="margin: auto;">
<div style="float: left; background: url(slice_01.jpg); width: 680px; height: 80px;">Test</div><div style="width: 302px; height: 80px; float: right; background: url(slice_02.jpg);">Test</div><div style="clear: both;"></div>
</div>
<div class="mitte" style="background: url(slice_03.jpg);">
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
Test<br>
</div>
<div style="position: fixed; top: 90px; left: 680px; background: url(slice_04.jpg); width: 302px; height: 351px;">Test</div><div style="clear: both;"></div>
<div style="position: fixed; top: 441px; left: 680px; background: url(slice_05.jpg); width: 302px; height: 100%;">Test</div><div style="clear: both;"></div>
<div class="unten">
<div style="float: left; background: url(slice_06.jpg); width: 680px; height: 40px;">Test</div><div style="height: 40px; width: 302px; float: right; background: url(slice_07.jpg);">Test</div>
</div>
<div style="display: block; position: fixed; z-index: 1; width: 100%; background: #ffffff; height: 10px; bottom: 0px;"></div>
</body>
</html>
wie kann ich diesen Div Tag zentrieren! Gibt es da überhaupt ein Befehl?