Warum hat diese inline-block-element einen Inhalt besitzen, der nicht vertikal ausgerichtet

Kam in einem komischen CSS Problem. Kann mir jemand erklären, warum die box mit Inhalt ist nicht vertikal ausgerichtet?

Wenn Sie text in den span mit der Klasse .divPutTextToFixIssue - es richtet richtig.

http://jsfiddle.net/KgqJS/88/

<div id="divBottomHeader">
    <div class="divAccountPicker">
       <span class="divPutTextToFixIssue"><span>                 
    </div>
    <div class="divAccountData">
        <span>Balance: $555</span>
    </div>
</div>
#divBottomHeader {
    background-color: #d5dbe0;
    height: 43px;
}
.divAccountPicker {
    display: inline-block;
    background: blue;            
    width: 200px;
    height: 40px;
}
.divAccountData {
    display: inline-block;
    background: red;
    width: 400px;
    height: 40px;
}​

InformationsquelleAutor Anton Skovorodko | 2012-10-18

Schreibe einen Kommentar