Divs vil ikke tilrette sig efter indhold!
Hej eksperter.Jeg har det problem af mit indhold ikke vil til-rette sig efter min divs.
Jeg har prøvet med noget "clear", <div style="clear: both"></div>.
Min kode ser sådan her ud:
<style type="text/css" media="screen">
html, body {height:100%;margin:0px;padding:0px;font-family:arial,sans-serif;}
#top {margin: 0% 0% 0% 0%;position:relative; z-index:1;background:white;height:100px;border:1px solid silver;}
div#banner {background:white;position:relative; z-index:1;float:left;height:100%;border:1px; solid white;}
div#baggrund {margin: 50px 10% 50px 10%;position:relative; z-index:1;height:auto;border:0px solid white;padding:0px;background-color:white;}
div#indhold {margin: 0% 18% 0% 18%;position:relative; z-index:1;height:auto;border:0px solid black;padding:5px 1em;background-color:white;}
div#menu {margin:1px 22% 0% 22%;position:relative; z-index:1;float:left;border-right:0px border-left:0px solid black;padding:0 1em;background-color:white;}
#leftcol { position:absolute;left:0px;top:100px;width:15%;border:1px solid silver;font-size:15px;padding:1%;background:white;}
#rightcol { position:absolute;right:0px;top:100px;width:15%; border:1px solid silver;font-size:90%;padding:1%;background:white;}
div#footer {margin:2% 21%;background:white;height:100%;position:relative; z-index:1;border:1px solid silver;}
p {margin: 0 auto 0em auto;}
.mumle {color:white;}
.red {color:white;}
</style>
Håber nogen kan hjælpe :)
