Cornelia_83: <DIV><DIV> Ich will in die Mitte! </DIV></DIV>

Beitrag lesen

Hi!

was machst du, wenn die greenBox eines Tages rot sein soll?

?

Es geht darum sinnvolle Bezeichner zu wählen, die nicht die *aktuell gewünschte* Darstellung beschreiben. Z.B: "infoBox" oder "navBox" statt "greenBox".

off:PP

  
<!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>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>DIV MITTIG STRITTIG</title>  
<style type="text/css">  
<!--  
body {  
	margin: 0;  
	padding: 0;  
	color: #FFFFFF;  
	font-family: Verdana, Arial, Helvetica, sans-serif;  
	font-size: 11px;  
}  
#IDSJPF {  
	margin: 0 auto 0 auto;  
	width: 1200px;  
	height: 50px;  
	border: 0px;  
	background-color: #006600;  
}  
#Peter_Pan {  
	float: left;  
	width: 220px;  
	background-color: #FF0000;  
	padding: 0.6em 0em 0.6em 0;  
	margin-top: 12px;  
	margin-right: 1px;  
	text-align: center;  
}  
  
  
-->  
</style></head>  
  
<body>  
<div id="IDSJPF">  
	<div id="Peter_Pan">SOOO gern wären wir in der Mitte!</div>  
        <div id="Peter_Pan">SOOO gern wären wir in der Mitte!</div>  
	<div id="Peter_Pan">SOOO gern wären wir in der Mitte!</div>  
</div>  
</body>  
</html>  
  

Geht's euch jetzt besser?