Hallo,
ich habe ein Problem. Undzwar wird, wenn unter einen Container ein Container mit automatischer Höhe gesetzt wird, ein Abstand zwischen den beiden gelassen.
HTML:
HTML-Code:
<div id="content">
<div id="content-top">
</div>
<div id="content-text">
<p>TEST</p>
</div>
</div>
CSS:
HTML-Code:
#content {
width: 540px;
height: auto;
float: left;
margin-left: 15px;
margin-top: 15px;
margin-bottom: 15px;
}
#content-top {
width: 540px;
height: 190px;
background-image: url(images/content-top.png);
background-repeat: no-repeat;
}
#content-text {
width: 540px;
height: auto;
background-image: url(images/content-text.png);
background-repeat: repeat-y;
}
Was muss ich beachten damit keine Lücke mehr vorhanden ist?
Viele Grüße
Yannick