---------- kode ----------
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"
http://www.w3.org/TR/html4/strict.dtd\"><HTML>
<HEAD>
<TITLE>Eksperten spm 154372</TITLE>
<META http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<STYLE type=\"text/css\">
<!--
BODY {
background-color: #005533;
margin: 0px 0px 0px 0px;
}
#centerdiv {
position: absolute;
top: 10px;
left: 10px;
width: 900px;
height: 550px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
border: 0px ridge white;
background-color: red;
}
#menudiv {
position: absolute;
top: 15px;
left: 10px;
width: 200px;
height: 400px;
margin: 0px 0px 0px 0px;
padding: 10px 10px 10px 10px;
border: 0px ridge white;
background-color: yellow;
}
#maindiv {
position: absolute;
top: 15px;
left: 220px;
width: 570px;
height: 400px;
margin: 0px 0px 0px 0px;
padding: 10px 10px 10px 10px;
border: 0px ridge white;
background-color: yellow;
}
-->
</STYLE>
</HEAD>
<BODY>
<DIV id=\"centerdiv\">
<DIV id=\"maindiv\">
<H1>Main</H1>
</DIV>
<DIV id=\"menudiv\">
<H1>Menu</H1>
</DIV>
</DIV>
</BODY>
</HTML>
---------- /kode ----------
Den røde div skal centreres. INde i den skal de to gule sidde med 15px til toppen af den røde.
Håber i forstår det ellers er jeg parat til at omformulere det :-)
- FiDuSeN -