在这个 jsFiddle中,如何垂直对齐图像和文本?
HTML:
<div class="step_div">
<div class="step_div_inner">
<div class="step_div_inner_image">
<img src="http://i.imgur.com/TasZn.png">
</div>
<div class="step_div_inner_text">
here is some text here is some text here is some text here is some text here is some text here is some text
</div>
</div>
</div>
CSS
.step_div_inner_text {
font-size:18px;
width:460px;
line-height:24px;
position:relative;
left:5px;
bottom:14px;
display:inline-block;
}
.step_div_inner_image {
display:inline-block;
}
.step_div {
padding:20px 0;
}
.step_div_inner {
width:574px;
margin:0 auto;
}