css - Different position of div's containing text and divs containing images -


i got problem outlining of div elements.

i got following structure.

<div id="skillcontent">   <div id="skillname" class="inline">    <div class="skilllist">     <div><h3>[skill]</h3></div>     <div><h3>[skill]</h3></div>    </div>   </div>    <div id="skillstars" class="inline">    <div class="skilllist">     <div>      <img src="img/star_active.png" alt="" />      <img src="img/star_active.png" alt="" />      <img src="img/star_inactive.png" alt="" />      <img src="img/star_inactive.png" alt="" />      <img src="img/star_inactive.png" alt="" />     </div>     <div>      <img src="img/star_active.png" alt="" />      <img src="img/star_active.png" alt="" />      <img src="img/star_active.png" alt="" />      <img src="img/star_inactive.png" alt="" />      <img src="img/star_inactive.png" alt="" />     </div>    </div>   </div>    <div id="skillinfo" class="inline">    <div class="skilllist">     <div><h4>[years],[level]</h4></div>     <div><h4>[years],[level]</h4></div>    </div>   </div>  </div> 

css:

.skilllist div {     padding: 0px;     margin: 0px;     display: block;     height: 25px; /*same height star images*/ }  div.inline {     display: inline-block; }  h3 {     font-size: 18px;     color: #5b5b5b;     margin: 0px; }  h4 {     font-size: 18px;     color: #808080;     margin: 0px; }  img {     vertical-align: bottom; } 

the divs contain text (h3 , h4) elements bit smaller divs contain images. there no margin or padding on element. height of of divs same there still whitespace on top of divs class skilllist contain text. there no whitespace above div contains images. why , how can fix it?

example: click

try adding vertical-align:top; css on items misaligned. worked when did using firebug on test page.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -