2. men hvis jeg erstattede
<? include("fil.php"); ?>
med:
<div id="menublok" >
<div id="div_topmenuramme">
<div id="div_topmenu">
</div>
</div>
</div>
Så er der ingen problemer. Hvad kan det skyldes?
Jeg vil gerne poste hele koden her:
stylesheet.php
<?php header("Content-Type: text/css; charset=utf-8"); ?>
#A4 {
background-color : #FFFFFF;
border-left : 1px SOLID #b0d4f7;
border-right : 1px SOLID #b0d4f7;
border-bottom : 1px SOLID #b0d4f7;
color : #000000;
font-family : Arial;
font-size : 10pt;
min-height : 600px;
margin-left : auto;
margin-right : auto;
padding : 10px;
position : relative;
text-align : left;
vertical-align : top;
width : 956px;
}
html,body {
background-color : #ececec;
height : 100%;
margin : 0px;
padding : 0px;
width : 100%;
}
.broed {
border : 0px solid;
width : 700px;
margin : 0px 0px 10px 0px;
}
.div_logindbox {
border : 0px solid #000000;
float : right;
letter-spacing : 1pt;
margin : 0px 0px 10px 0px;
width : 105px;
padding : 0px;
}
.div_logindbox_label {
font-family : arial;
font-size : 6pt;
color : #CCCCCC;
letter-spacing : 1pt;
margin : 0px 0px 10px 0px;
}
.div_logindbox:first-letter {
font-family : "Lucida Calligraphy";
color : #e5009c;
font-size : 16pt;
}
h1,h2,h3,h4,h5,h6:first-line {
border : 0px solid;
color : #e5009c;
font-variant : small-caps;
margin : 0px 0px 10px 0px;
}
p {
border : 0px solid;
margin : 0px 0px 10px 0px;
}
p:first-letter {
font-family : "Lucida Calligraphy";
color : #e5009c;
font-size : 16pt;
}
input {
border : 1px;
border-color : #CCCCCC;
border-style : solid;
font-family : arial;
font-size : 10pt;
color : #000000;
}
input.logind {
font-size : 8pt;
width : 100px;
color : #CCCCCC;
}
input.submit {
text-align : center;
width : 60px;
}
input:focus {
border-color : #000000;
color : #000000;
outline : 5px #e5009c dotted;
}
#bund {
border : 0px solid;
color : #CCCCCC;
font-family : Arial;
font-size : 8pt;
margin : auto;
padding : 5px 10px 10px;
text-align : center;
width : 956px;
}
#menublok {
background-image : url(grafik/1x66.gif);
background-repeat : repeat-x;
background-color : #b0d4f7;
border : 1px solid;
height : 66px;
margin : 0px;
padding : 0px;
width : 100%;
}
#div_topmenuramme {
border : 1px solid;
height : 66px;
margin : auto;
padding : 0px;
position : relative;
width : 976px;
}
#div_topmenu{
border : 1px solid;
height : 66px;
padding : 0px;
position : absolute;
right : 0px;
bottom : 0px;
width : 300px;
}
#indreskygge {
background-image : url(grafik/10x9gray.gif);
background-repeat : repeat-x;
background-color : #FFFFFF;
border-left : 1px SOLID #b0d4f7;
border-right : 1px SOLID #b0d4f7;
height : 9px;
margin-left : auto;
margin-right : auto;
padding : 0px;
text-align : center;
width : 976px;
}
a.menupunkter {
background-color : #ececec;
display : block;
width : 80px;
padding : 5px;
margin : 5px;
text-align : center;
}
a.menupunkter:hover {
background-image : url(grafik/stjerne.gif)
}
a.menupunkter:first-letter {
font-family : "Lucida Calligraphy";
color : #e5009c;
font-size : 16pt;
}
#menupunkter {
list-style-type : none;
margin : 0px;
padding : 0px;
overflow : hidden;
}
li.menupunkter {
float : left;
}
#reklameblok {
background-color : #000000;
border : 0px;
height : 100px;
margin : 0px;
padding : 0px;
width : 100%;
text-align : center;
}
#ydreskygge {
background-image : url(grafik/10x9outergray.gif);
background-repeat : repeat-x;
background-color : #ececec;
border : 0px;
height : 9px;
margin : 0px;
padding : 0px;
width : 100%;
}
</code>
index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<title>Ny side</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="stylesheet.php" >
</head>
<body >
<div id="reklameblok" ><? //require("includes/inc_reklameblok.php"); ?></div>
<div id="menublok" ><? include("includes/inc_menublok.php"); ?></div>
<div id="ydreskygge" >
<div id="indreskygge" ></div>
</div>
<div id="A4" ></div>
<div id="bund" >
Her står det som skal stå i bunden af siden
</div>
</body>
</html>