Here's what I am doing. When a List Item is hovered over, I show the contents of the div.
<li>
    <a href="#">
        <img src="http://placehold.it/300x250" />
        <div>
            <span>Some Description</span>
        </div>
    </a>
</li>
This works perfectly fine and my CSS, jQuery as well as HTML structure is defined over here http://jsfiddle.net/p0zyeku8/1/
My question is I want to change my HTML structure physically (not programmatically) and bring the <a> below the <span> and make the same example work like before. That is, now when the list item is hovered, I should show the contents of the <div> this time with the <span> and two <a> one below another. Here's what I mean
<li>        
        <img src="http://placehold.it/300x250" />
        <div>
            <span>Some Description</span>
            <a href="#" class="btn btn-default">
            <a href="#" class="btn btn-primary">
        </div>
</li>
But my CSS and HTML is going haywire when I make this change http://jsfiddle.net/p0zyeku8/2/. How do I modify my CSS to incorporate this change.
 
     
    