I am trying to vertically allign text inside div but without success, text in blocks are not vertically aligned. Thank you very uch for your help.
My JQuery Try:
$('.content_txt').each(function(){
if($(this).find('a').height() > 45){
if($(this).find('b').length > 0){
$(this).find('b').css('margin-bottom','10px');
$(this).css('height','auto');
}
}else{
$(this).css('height','60px');
}
});
HTML:
<div class="ui-body content_txt" style="background-color: rgb(246, 246, 253); height: 60px;">
<div>
<h2 class="h2" style="margin-bottom: 0px;padding:0px;vertical-align:middle;">
<a class="ui-link" href="/cz/cs/65_chystane-akce/2147_2014-iw-best-plants-conference.html?do=article"> 2014 IW Be...Conference </a>
</h2>
<span class="small2">
<b>7.5.2014 | Milwaukee, WI (US)</b>
</span>
<br>
</div>
</div>