I have this :
.themeMenu {
width: 100%;
height: 10%;
border: 0px;
overflow: hidden;
background-color: yellow;
}
.Preview {
display: inline-block;
height: 100%;
width: 15%;
background-color: red;
margin-left: 2%;
}
.mag {
display: inline-block;
height: 100%;
width: 15%;
background-color: green;
}
.themeTitle {
display: inline-block;
height: 100%;
width: 20%;
background-color: green;
text-align: left;
}
<div class="themeMenu">
<div class="preview"></div>
<div class="mag"></div>
<div class="themeTitle">text here ruin it</div>
</div>
Problem : when I don't put text into themeTitle
its aligned to the right just fine, but if I put one letter inside this div, all of it will go down so preview/mag
are vertically aligned but themTitle
goes down.
EDIT:
`vertical-align:top;`
will put the themeTitle in the same height with preview/mag, but the text will be on top, I need all of them to be vertically aligned to center :
( preview | mag | themeTitle )