I was wondering if using display: table for header layout would work in this case.
Please find three layouts attached that I would be trying to achieve
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/style.css">
<title>Lorem Ipsum </title>
</head>
<body>
<header>
<img src="/images/test-logo.png" alt="site logo">
<h1>Lorem Ipsum</h1>
<nav>
<ul>
<li><a href="page-1.html">menu-1</a></li>
<li><a href="page-2.html">menu-2</a></li>
<li><a href="page-3.html">menu-3</a></li>
</ul>
</nav>
</header>
<main>
<img src="https://images.pexels.com/photos/373543/pexels-photo-373543.jpeg" alt="">
<img src="https://images.pexels.com/photos/908284/pexels-photo-908284.jpeg" alt="">
<img src="https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg" alt="">
<img src="https://images.pexels.com/photos/373543/pexels-photo-373543.jpeg" alt="">
<img src="https://images.pexels.com/photos/908284/pexels-photo-908284.jpeg" alt="">
<img src="https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg" alt="">
</main>
<footer>© Lorem Ipsum. Copyright 2018.</footer>
</body>
</html>
* {box-sizing: border-box;}
body {
max-width: 60%;
margin: 0 auto;
font: normal 100% Arial, sans-serif;
color: #999999;
}
main img {max-width: 100%;}
header {
display: table;
table-layout: fixed;
width: 100%;
padding: 1em 0;
outline: 1px dotted green;
}
header img {
display: table-cell;
vertical-align: middle;
outline: 1px dotted blue;
}
header h1 {
display: table-cell;
vertical-align: middle;
outline: 1px dotted blue;
}
header nav {
display: table;
}
header nav ul {
display: table-row;
text-align: right;
}
header nav ul li {
display: table-cell;
outline: 1px dotted blue;
}
I am not sure if display: table could be a solution here for the header. Ronpat helped with my site layout in the past and he used display: table. Thanks again Ronpat I still have copy of your code and actually was reviewing it recently to understand if I can take anything from that layout and incorporate it into this layout.


