Я уверен, что я кое-что забыл, но не могу это решить. Есть пробел над моим вторым встроенным блоком div, и это происходит только тогда, когда длина «текст здесь» в правом div меньше, чем в левом.Белое пространство над вторым встроенным блоком div
jsFiddle: http://jsfiddle.net/B2S4r/2/ (Вам нужно сделать вид HTML шире, чтобы увидеть их вдоль стороны друг друга)
<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>
Прежде всего, я хотел бы начать с избавления от всего этого встроенного css. Очень сложно понять, что происходит на самом деле. –
Точка взята. Я никогда не использовал встроенный css, но мне было просто просто использовать его, пока я не найду нужные атрибуты, а затем разделил их. – sooper