I previously wrote all the styles in the style tag on the html doc. Later, I realized they have to be written in the stylesheet. So I rewrote them in the css file. But the styles aren't applying to the document now. If I use them in the style tag it works. The stylesheet is linked. Please let me know what I am doing wrong here. Is it the format?
<!DOCTYPE html>
<html>
<head>
<title>Mining Empire</title>
<link rel="shortcut icon" type="text/css" href="./images/favicon.ico">
<link rel="stylesheet" type="text/css" href="./styles.css">
</head>
<body>
<header>
<div class="container">
<nav>
<div class="logo-container">
<a href="#"><img src="./images/logo.png"/></a>
</div>
<div class="menu-block">
<ul class="main-menu">
<li class="nav-item">
<a class="nav-item-link" href="#about">About app</a>
</li>
<li class="nav-item">
<a class="nav-item-link" href="#learn">Learn with us</a>
</li>
</ul>
</div>
</nav>
</div>
</header>
</body>
</html>
styles.css
div.logo-container{
height:60px;
}
div.logo-container.img{
height:60px;
}
header{
background-color: #E4ECEE;
}
.container{
max-width: 1320px;
margin: 0 auto;
}
div.menu-block{
display: flex;
margin-left: auto;
}
Status
FAILED
Details
1. The background-color prop of the header element should be set to #E4ECEE
2. The max-width prop of the .container element should be set to 1320px
3. The margin prop of the .container element should be set to 0 auto
- The div.menu-block element should go after the div.logo-container
5. The display prop of the div.menu-block element should be set to flex
6. The margin-left prop of the div.menu-block element should be set to auto
The ul.main-menu element should be the child of the div.menu-block
There should be two li.nav-item elements inside ul.main-menu
Each li.nav-item element should have a.nav-item-link as child item
The first a.nav-item-link element should have the About app inner text
The first a.nav-item-link element should have the href attribute set to #about
The second a.nav-item-link element should have Learn with us inner text
The second a.nav-item-link element should have the href attribute set to #learn