Hallo!
Ich habe hier ein root-Div, das mit margin-left: auto und margin-right: auto dynamisch in der Mitte platziert wird. Nun möchte ich innerhalb dieses root-Divs ein anderes Div platzieren, dass 20px vom linken Rand des Root-Divs entfernt ist. Gibt es hierzu eine Möglichkeit? Hier noch ein kleiner Beispielcode, wie ichs mir vorstelle:
<div style="height: 400px; width: 400px; margin-left: auto; margin-right: auto; background-color:#999;">
<div style="position: absolute; left: 20px; background-color:#900; width: 100px; height: 100px;">
</div>
</div>