dann hast du es nicht richtig probiert
Code:
<html>
<head>
</head>
<body>
<div id="main" style="width:300px; height:32px;" >
<div id="1" style="width:150px; height:35px; background-color:#f00;"/>
<div id="2" style="margin-left:150px; width:150px; height:35px; background-color:#0f0;"/>
</div>
</body>
</html>
hat bei mir funktioniert, jetzt muss man nur das main div positionieren, da ich aber lange nichts mehr mit html styles gemacht habe weiss ich nicht wie man die position mittig ausrichtet, aber ich denke dass selfhtml helfen wird