Tell us what’s happening:
losing the will !!, I cannot get the test to accept that my nav bar os on the top , it certainly appears to be be but I am not sure what I am doing wrong ?
Your code so far
<body>
<main>
<section class="heading">
<header id="header">
<nav id="nav-bar">
<ul>
<li><a class="nav-link" href="#features">Features</a></li>
<li><a class="nav-link" href="#how-it-works">How It Works</a></li>
<li><a class="nav-link" href="#pricing">Pricing</a></li>
</ul>
</nav>
<img id="header-img"
<img src="https://th.bing.com/th/id/R.8a7e6912c49e455585fd8f0f75826704?rik=jw5uBUXMEjYvhQ&riu=http%3a%2f%2fwww.clipartbest.com%2fcliparts%2fMcL%2fn5g%2fMcLn5ga8i.jpg&ehk=Cpfsv92hagCAjB3UBnsWG7heq5JHwdyD%2fZUG5eLqMDs%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1"
alt="freelogo logo"
loading="lazy"
class="hero-img"
/>
</header><!-- file: index.html -->
*,
::before,
::after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-family: 'Baskervville', serif;
color: linen;
background-color: rgb(20, 30, 40);
}
h1 {
font-family: 'Anton', sans-serif;
}
h2, h3, h4, h5, h6 {
font-family: 'Raleway', sans-serif;
}
a {
text-decoration: none;
color: linen;
}
header{
background-color: #ffbf00;
display: flex;
flex-direction: column;
justify-content: right;
padding: 15px;
align-items: center;
}
#nav-bar{
display: flex;
}
.nav-link{
display: flex;
padding:0px;
justify-content: left;
color: black;
top: 0px;
display: inline-block;
}
main {
display: flex;
grid-template-columns: minmax(rem, 1fr) minmax(min-content, 94rem) minmax(2rem, 1fr);
row-gap: 3rem;
}
img {
width: 20%;
object-fit: cover;}
}
.heading {
grid-column: 2 / 3;
display: grid;
grid-template-columns: repeat(1, 1fr);
row-gap: 1.5rem;
}
.main-section {
grid-column: 2 / 3;
font-size: 1.8rem;
letter-spacing: 0.6px;
column-width: 25rem;
text-align: justify;
}
.hero {
grid-column: 1 / -1;
position: relative;
}
.hero-title {
text-align: center;
color: orangered;
font-size: 3rem;
}
.hero-subtitle {
font-size: 2.4rem;
color: green;
text-align: center;
}
}
.first-paragraph::first-letter {
font-size: 6rem;
color: orangered;
float: left;
margin-right: 1rem;
}
hr {
margin: 1.5rem 0;
border: 1px solid rgba(120, 120, 120, 0.6);}
@media (max-width: 600px) {
header {
flex-wrap: wrap;
}
}
.logo {
width: 60vw;
}
}
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
Challenge Information:
Product Landing Page - Build a Product Landing Page