How to align a logo, header text and menu all on one line, with the logo aligned left, followed by the header text and the menu right? Most answers I have seen are for two elements (e.g., logo and menu).
For example, in the example below, the image div and the text div should align left (they do) and the menu div should alight right (it doesn't). They all also should vertically align (the menu div doesn't). See also http://jsfiddle.net/ecodiv/0xk935n6/
<div class="header">
<div class="image"></div>
<div class="text">Header text</div>
<div class="menu">
<ul>
<li><a href="#">menu 1</a></li>
<li><a href="#">menu 2</a></li>
</ul>
</div>
</div>
And the CSS:
.header {
}
.header .image {
background-color: red;
width: 70px;
height: 93px;
}
.header .text {
background-color: yellow;
}
.header menu {
float:right;
}
.menu ul {
float: right;
list-style-type: none;
}
.menu li {
float: left;
margin: 0 8px;
}
.image, .text, .menu {
display: inline-block;
vertical-align: bottom;
}