Jestem pewna, że przeoczyłem coś tutaj, ale nie mogę go rozwiązać. Nad moim drugim blokiem wstawkowym znajduje się biała przestrzeń, co ma miejsce tylko wtedy, gdy długość "tekstu tutaj" w prawym div jest mniejsza niż w lewej.Biała przestrzeń nad drugim blokiem w linii podziału
jsFiddle: http://jsfiddle.net/B2S4r/2/ (Musisz dokonać widoku HTML szerszy, aby zobaczyć je wzdłuż boku każdego innego)
<div style="border-top: 1px dashed black; display: inline-block; width: 250px; margin-bottom: 10px; margin-right: 10px; margin-top: 0;">
<div style="height: 50px; padding-top: 2px; padding-bottom: 2px; text-align:right; font-size: 11px;">
<div style="display: block; width: 80px; height: 50px; float: left; background-color: #cdcdcd; background-position: left center;">
</div>
<span class="main_header" style="font-size: 21px; margin: 0;">Title</span>
<br />
Subtitle
</div>
<div style="display:block; background-color: #efefef; height: 75px; padding: 5px; font-size: 12px;">
Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here Text here
</div>
</div>
<div style="border-top: 1px dashed black; display: inline-block; width: 250px; margin-bottom: 10px; margin-right: 10px; margin-top: 0;">
<div style="height: 50px; padding-top: 2px; padding-bottom: 2px; text-align:right; font-size: 11px;">
<div style="display: block; width: 80px; height: 50px; float: left; background-color: #cdcdcd; background-position: left center;">
</div>
<span class="main_header" style="font-size: 21px; margin: 0;">Title</span>
<br />
Subtitle
</div>
<div style="display:block; background-color: #efefef; height: 75px; padding: 5px; font-size: 12px;">
Text here Text here Text here Text here Text here Text here Text here Text here Text
</div>
</div>
Przede wszystkim zacznę od pozbycia się wszystkich tych wbudowanych css. Bardzo trudno jest zobaczyć, co się naprawdę dzieje. –
Punkt wzięty. Zwykle nigdy nie używam inline css, ale wydawało mi się, że łatwiej jest go używać, dopóki nie znajdę odpowiednich atrybutów, a następnie je odseparuję. – sooper