suit: Div innerhalb div

Beitrag lesen

Mach mal zu Testzwecken verschiedenfarbige Rahmen um die Divs und du wirst es sehen

Was werde ich sehen? Dass ich recht hatte?

oder verwende Firefox + Firebug.

Einen Teufel werd' ich tun - wozu gibt's Opera?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
	<head>  
		<title>overflow</title>  
		<style type="text/css">  
			#a {  
				width: 250px;  
				height: 250px;  
				border: 1px solid red;  
			}  
			#b {  
				width: 125px;  
				height: 500px;  
				border: 1px solid green;  
			}  
			#c {  
				margin-top: 373px;  
				width: 250px;  
				height: 125px;  
				border: 1px solid blue;  
			}  
		</style>  
	</head>  
	<body>  
		<div id="a">  
			<div id="b">  
				<div id="c"></div>			  
			</div>  
		</div>  
	</body>  
</html>