Hallo,
ich habe ein Problem bei der Ausrichtung von 3 Box-Elementen. So sieht der Code aus:
Mein Problem ist, dass wenn ich den Internet Explorer verkleinere, LEFT über INHALT zusammenfließt. Ich möchte dass bei INHALT das ich mit
definiere auch LEFT anhält und nicht weiter läuft. Ich weiss, dass es an dem Befehl absolute liegt aber mit relative gehts irgendwie auch nciht. Wie kann ich also eine Abhängigkeit von LEFT zu INHALT erstellen mit 10px Abstand zueinander....
Danke schon im Voraus:?
ich habe ein Problem bei der Ausrichtung von 3 Box-Elementen. So sieht der Code aus:
Code:
<html>
<head>
<title>My Site</title>
<style type="text/css">
body{
font-family : Verdana, Arial, Helvetica, sans-serif;
padding: 0px;
margin: 0px;
background-color: #FAEBD7;
}
h1{
text-align:center;
font-size:20px;
color:#000000;
margin-bottom:0px;
}
#header
{
position:relative;
height: 110px;
margin: 10px;
min-width:1150px;
border-style:dotted;
}
#middle {
position: relative;
width: 100%;
}
#inhalt {
margin: 2px 330px 2px 330px;
min-height:550px;
border-style:solid;
min-width:550px;
}
#left {
position: absolute;
top: 0px;
left: 10px;
width: 300px;
height: 550px;
border-style:dashed;
}
#right {
position: absolute;
top: 0px;
right: 10px;
width: 300px;
height: 550px;
border-style:dashed;
}
</style>
</head>
<body>
<div id="header">
<h1>Header
</h1>
</div>
<div id="middle">
<div id="inhalt">
<h1>Inhalt</h1>
</div>
<div id="left">
<h1>Left</h1>
</div>
<div id="right">
<h1>Right:</h1>
</div>
</div>
</body>
</html>
Code:
min-width:550px;

Danke schon im Voraus:?