I have five content blocks in a line on a page, if the content of the blocks is the same they all line up, but if one has a little more content than the others i.e. 5 lines tall instead of 4 then than one drops out of line with the others. I have made the box taller than it needs to be so that even the block with the longer content fits into the block fine but it is still out of line.
Here's my code
and this is the css
I tried putting another div around these blocks with vertical-align: top but that didn't work to keep them in line. Is there something in css that will do this?
Thanks
Here's my code
Code:
<div class='promo'>
<h2>Title</h2>
<p>This is some text This is some text This is some text This is some text This is some text This is some text</p>
</div>
<div class='promo'>
<h2>Title</h2>
<p>This is some text This is some text This is some text This is some text This is some text This is some text</p>
</div>
<div class='promo'>
<h2>Title</h2>
<p>This is some text This is some text This is some text This is some text This is some text This is some text</p>
</div>
<div class='promo'>
<h2>Title</h2>
<p>This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text</p>
</div>
<div class='promo'>
<h2>Title</h2>
<p>This is some text This is some text This is some text This is some text This is some text This is some text</p>
</div>
and this is the css
Code:
.promo {display: inline-block; width: 359px; height: 173px; max-height: 173px; padding: 20px; margin-left: 36px; overflow: none; background: transparent url('images/promo.png') no-repeat left top;}
.promo h2 {margin: 0px; font-size: 1.8em; text-transform: uppercase; font-weight: normal}
.promo p {font-size: 1.4em}
I tried putting another div around these blocks with vertical-align: top but that didn't work to keep them in line. Is there something in css that will do this?
Thanks