• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

Container nebeneinander positionieren???

Sollte so funktionieren:
Code:
<?xml version="1.0" encoding="iso-8859-1"?> 
<!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" xml:lang="de"> 
<head> 
<title>Dokumenttitel</title> 
<style type="text/css"> /*<![CDATA[*/ 
#container1 {
width:300px;
height:300px;
float:left;
background:#fff;
}
#container2 {
width:300px;
height:300px;
float:left;
background:#000;
}
 /*]]>*/ </style> 
</head> 
<body> 
<div id="container1"></div>
<div id="container2"></div>
<br style="clear:both" />
</body> 
</html>
 
Zuletzt bearbeitet:
ahh thx
und nochmal ne frage wie kann ich jetzt setzten, dass die beiden container immer 10px vonenander entfernt sind???
 
Code:
<?xml version="1.0" encoding="iso-8859-1"?> 
<!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" xml:lang="de"> 
<head> 
<title>Dokumenttitel</title> 
<style type="text/css"> /*<![CDATA[*/ 
#container1 {
width:300px;
height:300px;
float:left;
border:1px solid #000;
}
#container2 {
width:300px;
height:300px;
float:left;
border:1px solid #000;
[B]margin-left:10px;[/B]
}
 /*]]>*/ </style> 
</head> 
<body> 
<div id="container1">123</div>
<div id="container2">456</div>
<br style="clear:both" />
</body> 
</html>
 
Zuletzt bearbeitet:
Danke für die erschöpfende Auskunft. ;)
Hier das Ganze in html:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<title>Dokumenttitel</title> 
<style type="text/css">
#container1 {
width:300px;
height:300px;
float:left;
border:1px solid #000;
}
#container2 {
width:300px;
height:300px;
float:left;
border:1px solid #000;
margin-left:10px;
}
</style> 
</head> 
<body> 
<div id="container1">123</div>
<div id="container2">456</div>
<br style="clear:both">
</body> 
</html>
 
sorry dasi nichts mehr gesagt hab, aber hab dann gestern keine Lust mehr gehabt weil überhaupt nichts mehr funktioniert hatt... sorry
 
Zurück
Oben