Was überall zu gehen scheint (nur der IE 6 braucht noch einen min-width-Hack):
HTML-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="de" xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Test</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
html,
body {
width: 100%;
min-width: 650px;
}
body {
overflow: hidden;
overflow-y: auto;
}
#n1 {
background: red;
height: 200px;
width: 600px;
position: relative;
margin: 0 auto;
}
#n2 {
background: green;
width: 2000px;
position: absolute;
right: 0;
top: 0;
}
</style>
</head>
<body>
<div id="n1">text
<div id="n2">text</div>
</div>
</body>
</html>
__________________
Wer keinen Link auf seine problembehaftete Seite posten kann, weil diese noch nicht online ist: Testcase bauen, online stellen, Link posten.
Internet-Grundregel: Unbekannte Begriffe googeln! (Erspart 99% aller Nachfragen.)
|