Макет, созданный с использованием HTML и стиля ниже, стал беспорядок после переполнения: скрытый от первого контейнера <div>
был удален (так что выражения MathJax не были обрезаны). Я не могу найти простое решение, и я буду благодарен за любую помощь.
Удаление переполнения: скрытые изменения макета
HTML:
<div class="c0">
<div class="d01">
This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence.
</div>
<div class="d02">
This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence. This is a repeated sentence.
</div>
</div>
<div class="c1">
<div class="d02">
Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here.
</div>
<div class="d02">
Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here.
</div>
<div class="d01">
Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here. Some paragraph filler here.
</div>
</div>
Стиль:
.c0 { background-color:#FF00FF; width:500px; margin: 0 auto;
position: relative; overflow:hidden; }
.d01 { background-color:#00FFFF; width:250px; float:right; margin-top: 3em; }
.d02 { background-color:#006666; width:150px; float:left; margin-top: 1em; }
.c1 { background-color:#666666; width:600px; margin: 0 auto; overflow:hidden; }
Удаление 'переполнения: hidden' заставляет контейнер теряет свою высоту, из-за плавали детей: http://www.quirksmode.org /css/clearing.html –