JSFiddle - React, Tailwind, and code Playground

by MichelleGlauser

HTML

<div id="listContainer">
    <div id="restaurantList">
        <div id="mexandco" class="restaurants" style="background-color: green"> <a href=”#”>
                        <div id="restHeader">
                            <div id="logoSpace">
                                <img src="http://waimaichaoren.com/media/a/cuisine/cuisine-02.png"/></a>

        </div>
    </div>
    </a>
</div>
</div>
</div>

CSS

#restaurantList {
    /*    background-color: #e9e7e6; */
    background-color: aquamarine;
    width: 863px;
    height: 56px;
    margin: 0 auto;
    text-align: center;
}
.restaurants {
    float: left;
    width: 205px;
    margin-top: 30px;
    height: 210px;
    line-height: 210px;
    position: relative;
    margin-right: 14px;
}
.leftColRestaurants {
    float: right;
    width: 205px;
    margin-top: 30px;
    height: 210px;
    line-height: 210px;
    position: relative;
}
#restHeader {
    background-color: #e9e7e6;
    height: 85px;
    float: left;
    position: absolute;
    top: 0;
    width: 100%;
}
#logoSpace {
    height: 63px;
    line-height: 63px;
    /*This helps with vertical alignment on the image.*/
    width: 98px;
    background-color: white;
    float: left;
    position: absolute;
    left: 8px;
    top: 11px;
}
you can set line-height on parent equal to its height and vertical-align: middle;
 on your img. #logoSpace a img {
    float: left;
    height: 100%;
    width: auto;
}