Ok, dit problem ser ud til at være at teksten og menuen ikke kommer ind i borderen når du insætter float.
Ellers et fint, dejligt simpelt layout du har der;D
Prøv at ændre CSS filen til:
/* Main */
body {
background-color: gray;
color: black;
font-size: 11px;
font-family: Verdana, Arial, monospace;
text-align: left;
}
/* Class */
.top {
border-bottom: 1px dashed #B32608;
}
a.menu:link,a.menu:visited,a.menu:active {
color: #B32608;
background-color: #F2F2F2;
text-decoration: none;
}
a.menu:hover {
color: #0E85C9;
text-decoration: none;
background-color: #F2F2F2;
}
/* Identd */
#out {
border: 40px solid #B32608;
width: 1243px;
background-color: #F2F2F2;
color: black;
margin: auto 0;
text-align: left;
}
#content {
text-align: left;
background-color: #F2F2F2;
width: 695px;
color: black;
padding: 5px 0px 5px 5px;
float: left;
}
#navigation {
text-align: left;
background-color: #F2F2F2;
width: 100px;
color: black;
padding: 5px 0px 5px 0px;
float: right;
}
Og HTML filen til:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Temporary MulleP.dk 0.1 Version</title>
<link href="index2_files/style2.css" rel="stylesheet" type="text/css"><!--[if IE]>
<link href="style-ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head><body>
<div id="out">
<div id="content">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
posuere mattis libero. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Praesent velit. Etiam et neque. Sed egestas laoreet
metus. Aliquam cursus pede nec risus. Ut metus ligula, aliquet vel,
venenatis et, pretium ac, enim. In nibh urna, consequat in, hendrerit
at, sodales a, leo. Vestibulum tempus mollis lacus. Proin sagittis
turpis ut leo. Donec eros erat, iaculis nec, ullamcorper sit amet,
pharetra in, justo. Ut mattis quam at leo. Quisque scelerisque volutpat
metus. Curabitur at dui et justo facilisis congue. Sed bibendum lacus
rutrum orci. Mauris congue odio id urna. In hac habitasse platea
dictumst. Morbi iaculis, urna at viverra malesuada, massa odio porta
augue, at pretium massa est placerat elit. Donec purus leo, facilisis
eu, interdum sit amet, accumsan vitae, tellus. Maecenas dolor nulla,
sagittis et, pretium vehicula, egestas sed, tortor.
In dictum quam in arcu. Nunc aliquam pede sit amet nibh. In vestibulum
bibendum est. Pellentesque quam arcu, mattis eget, vulputate rhoncus,
pellentesque non, sem. Phasellus magna orci, varius vitae, porta a,
ornare quis, dolor. Integer sodales, libero nec tincidunt fermentum,
dolor pede porttitor lorem, a pharetra lorem nulla in mi. Phasellus
quam mi, dictum in, feugiat vitae, pharetra eget, sapien. Duis volutpat
auctor pede. In euismod luctus est. Aenean volutpat venenatis enim.
Morbi sed nisi tempus ipsum tempus faucibus. Fusce sed lacus
consectetuer arcu dictum ultricies. Maecenas vestibulum.
Quisque tempus, quam eu vehicula feugiat, elit nisl dictum justo, ut
pretium dolor lacus sit amet magna. Nulla tincidunt, tellus volutpat
tempor molestie, purus arcu congue diam, vitae ornare magna arcu eu
est. Nunc vehicula, sapien eget consequat tincidunt, velit nibh cursus
lectus, a porta magna est nec turpis. Sed sit amet eros. Pellentesque
et risus tincidunt dolor sodales semper. Vestibulum libero. Fusce mi
nulla, molestie nec, nonummy quis, convallis ullamcorper, enim. Sed
vestibulum feugiat libero. Aliquam euismod aliquet nulla. Mauris sit
amet tortor. Aliquam est lacus, laoreet et, porttitor eu, euismod in,
massa. Aliquam risus nunc, semper nec, ullamcorper eget, pharetra
suscipit, tellus. Morbi ultrices. Nulla facilisi. Sed enim neque,
imperdiet quis, adipiscing in, porttitor eu, turpis. Vestibulum
feugiat. Maecenas sit amet sem. Proin non mauris quis dui lacinia
porta. Ut rhoncus facilisis velit. </div>
<table id="navigation">
<tbody><tr>
<td class="top">Menu</td>
</tr>
<tr>
<td>
<a href="http://mullep.dk/index2.php?side=fs" class="menu">Forside</a><br>
<a href="http://mullep.dk/index2.php?side=bl" class="menu">Blog</a><br>
<a href="http://mullep.dk/index2.php?side=ut" class="menu">Undertegnede</a><br>
<a href="http://mullep.dk/index2.php?side=cv" class="menu">Mit CV</a><br>
<a href="http://mullep.dk/index2.php?side=pf" class="menu">Portefølje</a><br>
<a href="http://mullep.dk/index2.php?side=kt" class="menu">Kontakt</a><br>
<a href="http://mullep.dk/index2.php?side=ls" class="menu">Links</a><br>
<a href="http://mullep.dk/index2.php?side=gb" class="menu">Gæstebog</a>
</td>
</tr>
<tr>
<td>
<p>
<a href="http://validator.w3.org/check/referer"><img style="border: 0px none ;" src="index2_files/valid-xhtml10.png" alt="Valid XHTML 1.0!" height="31" width="88"></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border: 0px none ; width: 88px; height: 31px;" src="index2_files/valid-css2.png" alt="Valid CSS 2!"></a>
</p>
</td>
</tr>
</tbody></table>
</div>
</div>
</body></html>
Men jeg forstår ikke hvad du vil med den tabel?
Indlæg senest redigeret d. 26.03.2007 15:57 af Bruger #10113