I have this HTML layout:
<div class="container">
<header>
<h1>AmarCourse</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
</header>
<main>
<section class="post">
<article>
<h2>My First Article</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p>
</article>
</section>
<aside>
<h2>About Me</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. </p>
</aside>
</main>
<footer>
<nav>
<ul>
<li><a href="#">Copyright</a></li>
<li><a href="#">Terms</a></li>
</ul>
</nav>
<address>Dhanmondi 15 no, Dhanmondi, Dhaka-1209.</address>
<p>All rights reserverd</p>
</footer>
</div>
Now, I am using the following CSS for the footer and header:
header nav ul {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
padding: 0;
}
footer nav ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 0;
}
You can see that both header and footer hash the same css property that's why I am writing this code:
header,
footer nav ul {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
padding: 0;
}
But It's showing me:
Should be show