I have to build a 3-column Flex Layout here on the codepen
But I need to add a black color top bar like this:
I have added a code, which is commented in the codepen.
I have to write a CSS for this so that the black color top bar appears. Don't know how to do this. May be some wrap property will be used or some reverse property. Please guide me.
body {
margin: 0;
}
header,
footer,
.content {
display: flex;
}
.content {
justify-content: space-between;
height: 75vh;
max-width: 1500px;
margin: auto;
}
.main {
display: flex;
justify-content: space-between;
width: 70.5%;
}
.primary {
width: 27%;
background-color: yellow;
}
.article {
background-color: blue;
width: 71%;
order: 2;
}
.secondary {
background-color: pink;
width: 25%;
order: 1;
}
.footer {
display: flex;
}
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The Fundamental Layout</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>This is a Header Location</h1>
</header>
<div class="content">
<main class="main">
<!-- <div class="top">
The Top area
</div> -->
<aside class="secondary">
The secondary Sidebar
</aside>
<article class="article">
</article>
</main>
<aside class="primary">
The Primary Sidebar
</aside>
</div>
<footer class="footer">
The Footer Area
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</body>
</html>