I have this code below. it creates an image on the left and a description with a button on the right. the two divs are side-by-side. I can't figure out how to get the image to be vertically aligned within the surrounding "promo_box_wrapper".
<div class="promo_box no_border">
<div class="promo_box_wrapper promo_box_left">
<div class="photo_wrapper">
<img class="scale-with-grid" src="http://example.com/my.jpg" alt="living" width="1300" height="640">
</div>
<div class="desc_wrapper">
<h2>Retirement Living</h2>
<div class="desc">
Retirement living is designed for senior adults who wish to maintain their independent lifestyles.
</div>
<a href="/services/retirement-living" class="button button_left button_theme button_js kill_the_icon">
<span class="button_icon"><i class="icon-layout"></i></span>
<span class="button_label">Learn More</span>
</a>
</div>
</div>
</div>
the site is here: www.seasonsmanagement.com/home-sample
I've tried adding vertical-align:middle;
to these divs:
.promo_box_wrapper, .photo_wrapper, .desc_wrapper, .photo_wrapper img {
vertical-align: middle;
}
But it's laughing at me. What am I missing?