I have the following code:
@charset "utf-8";
/* CSS Document */
img {
border: 0;
max-width: 100%;
}
div.cabecalho {
position:relative;
width:100%;
height:200px;
border:.1px solid #000000;
}
div.cabecalho div.logo,
div.cabecalho div.whats,
div.cabecalho div.contato,
div.cabecalho div.medias {
position:relative;
display:inline-block;
vertical-align:middle;
line-height:70%;
}
div.cabecalho div.logo {
width:43%;
}
<div class="cabecalho">
<div class="logo">
<img src="http://funerariasaopedro.net.br/novo/_img/logoFuneraria.png"alt="Logo"/>
</div>
<div class="whats"></div>
<div class="contato"></div>
<div class="medias"></div>
</div>
The goal is to have 4 divs
within div
inline
and aligned vertically to the middle.
Where am I going wrong?
Goal: