fix margin auto lead to negativ positioning

This commit is contained in:
Lukas Wöhrl
2020-06-09 12:59:16 +02:00
parent ede65bbce4
commit 999bd723d8
3 changed files with 125 additions and 4 deletions

View File

@@ -149,4 +149,14 @@
<div id="margin_auto_left_stretching_child" style="width: 200px; height: 200px; align-items: center;">
<div style="flex: 1; margin-left:auto;"></div>
<div style="width: 50px; height: 50px;"></div>
</div>
</div>
<div id="margin_top_auto_overflow_parent" style="flex-direction:column; height: 500px; width: 20px;">
<div style="height: 300px;"></div>
<div style="margin-top: auto; height: 300px;"></div>
</div>
<div id="margin_bottom_auto_overflow_parent" style="flex-direction:column; height: 500px; width: 20px;">
<div style="height: 300px;"></div>
<div style="margin-top: auto; height: 300px;"></div>
</div>