Matthias: div breite

Beitrag lesen

Hab noch folgendes Problem.
Wenn der Untergeordnete layer die Breite 100% hat sollte er 100% so breit sein wie das übergeordnete. Aber leider ist das hier nicht der Fall. Und Firefox zeigt mir die Grafiken nicht richtig an.

Danke

<div id="main">
<div style="background-image:url(img/maineck.gif); background-repeat: no-repeat; background-position: top left; height: 39px; width: 35px; position: absolute;"></div>
<div style="background-image:url(img/graypoint.gif); background-repeat: repeat-x; height: 1; width: 100%; position: absolute;"></div>
<div style="background-image:url(img/graypoint.gif); background-repeat: repeat-y; height: 100%; width: 1px; position: absolute;"></div>
</div>

#main{
 position: absolute;
 background-color:#FFFFFF;
 height: 100%;
 width: 100%;
 margin-left: 150px;
 margin-top: 100px;
}