Hallo, mein problem besteht darin, das der #content keine maximal breite annehmen will. gestätze 500px geht er drüber. Wie schaffe ich es, ein festen Breitenverhältnis zu machen?
main.css
index.php
main.css
Code:
body {
margin: 0px;
padding: 0px;
font-family: Verdana;
font-size: 14px;
}
.headfoot {
display: block;
width: 1010px;
height: 174px;
text-align: center;
padding: 5px;
font-size: 30px;
background-image: url(../bilder/header.png);
}
#container {
width: 100%;
position: relative;
display: block;
overflow: visible;
height: 1500px;
}
#left {
float: left;
position: relative;
width: 305px;
height: 1317px;
background-image: url(../bilder/adv-left.png);
}
#preview {
width: 505px;
height: 184px;
float: left;
display: inline;
background-image: url(../bilder/preview.png);
}
#content{
float: left;
display: inline;
width: 505px;
height: 1133px;
background-image: url(../bilder/content.png);
}
#right {
float: right;
display: inline;
}
index.php
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
</head>
<body>
<div class="headfoot"></div>
<div id="container">
<div id="left"></div>
<div id="preview"></div>
<div id="content"><?php phpinfo(); ?></div>
</div>
</body>
</html>