Here is a snippet of HTML code:
<header>
<div class='content'>
<div class='pull-left'>
<h1>Hello World</h1>
<h2>Lorem ipsum</h2>
</div>
<div class='pull-right'>
<a href='#'>
<button class='edit'>Edit Book</button>
</a>
</div>
</div>
</header>
The h1 element will always be present, but the h2 element is optional and can affect the dynamic height. The goal is to vertically align the "Edit Book" button so that it appears in the middle of the .content container. Attempting to use vertical-align:center
on the button has not been successful.
For reference, here is a link to the JSFiddle: http://jsfiddle.net/v8SfN/