CSS: IE7,6,5.5 Wahnsinn bei runden Ecken

mschoening

Gelbe Schleswiger Reinette
Registriert
21.02.07
Beiträge
1.764
Hi,
ich bin gerade dabei zwei verschachtelte Rechtecke mit runden Ecken zu gestalten:

Ihr könnt es euch mit FF oder Safari anschauen um die korrekte Darstellung zu sehen:
http://www.maximilianschoening.com/alpha

Wenn ich jetzt aber mir das gleiche mit dem Internet Explorer anschaue wird es fehlerhaft dargestellt. Es liegt and dem padding-bottom der inneren Box. Nur warum?

Hier nochmal der Quellcode und der relevante Teil des CSS:
Code:
<!-- !content -->
<div class="content_bottom" id="content">
	<div class="content_top">
		<div class="box_bottom">
			<div class="box_top">
				Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
			</div>
		</div>
	</div>
</div>
<!-- /content -->

Code:
.content_bottom {
	background: url(../images/content_bg_bottom.gif) left bottom no-repeat #303030;
}

.content_top {
	background: url(../images/content_bg_top.gif) left top no-repeat;
	padding: 20px;
}

.box_bottom {
	background: url(../images/box_bg_bottom.gif) left bottom no-repeat #202020;
}

.box_top {
	background: url(../images/box_bg_top.gif) left top no-repeat;
	padding: 10px;
}

Thanks,
Max
 

mschoening

Gelbe Schleswiger Reinette
Registriert
21.02.07
Beiträge
1.764
Hi,
also ich habe es hier mit hasLayout zu tun. Ich musste der box_top einfach eine width von 540px geben und jetzt funktioniert es.

LG,
Max