Most Helpful
Most Helpful
@rollback999:
i wonder if there is still somebody out there using vertical-align as it has been deprecated since css2.0 CMIIW. If you want the text to be vertically aligned, it'd be better to use a line-height property, which the value equals to the parent element's height. E.g:
Put the p inside the div:
Div {
height: 200px;
}
p{
line-height: 200px;
}
i wonder if there is still somebody out there using vertical-align as it has been deprecated since css2.0 CMIIW. If you want the text to be vertically aligned, it'd be better to use a line-height property, which the value equals to the parent element's height. E.g:
Put the p inside the div:
Div {
height: 200px;
}
p{
line-height: 200px;
}
You can position the image relatively by:
<div style="line-height:18px; font-size:12px;">
<img src="http://cdn.qhub.com/somepic.jpg" style="height:18px; vertical-align:middle; position: Relative; bottom: 2px;">ANY TEXT
</div>
<div style="line-height:18px; font-size:12px;">
<img src="http://cdn.qhub.com/somepic.jpg" style="height:18px; vertical-align:middle; position: Relative; bottom: 2px;">ANY TEXT
</div>