I'm trying to center a div for my logo vertically inside my navigation header. I've looked into other topics on stackoverflow, but none of them gave me a good solution. Can anybody of you give me a good responsive solution
Looked into : How to vertically center a div for all browsers? and that did not solve my issue.
The goal is to have the div class with logo on the left side vertically centered and the div class with nav on the right side centered vertically.
Snippet:
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
font-size: 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
vertical-align: baseline;
outline: none;
}
#header {
background: #00968B;
height: 58px;
}
.logo {
height: 58px;
}
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div id="header">
<div class="container">
<div class="logo">
logo
</div>
<div class="nav">
</div>
</div>
</div>
</body>
</html>