hi,
ich schreibe erst mal meine Ansätze und schildere dann unten mein Problem.
index.php
PHP-Code:
<html>
<head>
<title>index</title>
<meta name="author" content="Christoph">
</head>
<body>
<link rel="stylesheet" type="text/css" href="style.css">
<div class="container">
<div class="top_left">
<object data="top_left.php">
</div>
<div class="banner">
<object data="banner.php">
</div>
<div class="top_right">
<object data="top_right.php">
</div>
<div class="navi_top">
<object data="navi_top.php">
</div>
<div class="navi_left">
<object data="navi_left.php">
</div>
<div class="main">
<object data="main.php">
</div>
<div class="navi_right">
<object data="navi_right.php">
</div>
<div class="bottom_left">
<object data="bottem_left.php">
</div>
<div class="bottom_center">
<object data="bottom_center.php">
</div>
<div class="bottom_right">
<object data="bottom-right.php">
</div>
</div>
</body>
</html>
style.css
Code:
div.container
{
width:1000px;
height:1000px;
margin-left:auto;
margin-right:auto;
padding:0px;
}
div.top_left
{
position: absolute;
width:195px;
height:145px;
margin-top:0px;
margin-left:0px;
}
div.banner
{
position: absolute;
width:595px;
height:95px;
margin-top:0;
margin-left:200px;
background:red;
}
div.top_right
{
position: absolute;
width:195px;
height:145px;
margin-top:0px;
margin-left:800px;
}
div.navi_top
{
position: absolute;
width:595px;
height:45px;
margin-top:100px;
margin-left:200px;
}
div.navi_left
{
position: absolute;
width:195px;
height:495px;
margin-top:150px;
margin-left:0px;
}
div.navi_right
{
position: absolute;
width:195px;
height:495px;
margin-top:150px;
margin-left:800px;
}
div.main
{
position: absolute;
width:595px;
height:495px;
margin-top:150px;
margin-left:200px;
}
div.bottom_left
{
position: absolute;
width:195px;
height:145px;
margin-top:650px;
margin-left:0px;
}
div.bottom_center
{
position: absolute;
width:595px;
height:145px;
margin-top:650px;
margin-left:200px;
}
div.bottom_right
{
position: absolute;
width:195px;
height:145px;
margin-top:650px;
margin-left:800px;
}
a:link
{
color:#000000;
text-decoration:none;
}
a:visited
{
color:#000000;
text-decoration:none;
}
a:focus
{
color:#000000;
text-decoration:none;
}
a:hover
{
color:#000000;
text-decoration:none;
font-size: medium;
font-weight: bold;
}
a:active
{
color:#000000;
text-decoration:none;
}
body
{
font-family: Times New Roman;
text-align: left;
color: #000000;
font-size: small;
}
So jetzt zu meinem Problem:
Mein Ziel ist es, entlich von Frames weg zukommen und durch div's zu ersetzen. Nun wollte ich aber gerne weiterhin die Seite in mehrere Dateien unterteilen. Meine Idee war es nun, die einzelnen Seiten Teile mit <object data="top_left.php"> einzusetzen.
Doch dieses klappt nicht richtig. Die eingesetzen Dateien werden nie richtig dargestellt.
Was mach ich falsch, oder was muss ich anderes machen?
Bin über jede Idee dankbar.
Gruß
christoph