Tell us what’s happening:
I can’t accomplish user story #14 in the technical documentation project which says: On regular sized devices (laptops, desktops), the element with id="navbar"
should be shown on the left side of the screen and should always be visible to the user.
Here’s a link to my code:
https://codepen.io/Bashar3/pen/Yzparmw
Your code so far
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Technical documentation </title>
</head>
<body>
<main id="main-doc">
<nav id="navbar">
<header>Walk-through 5 different proramming languages</header>
<a class="nav-link" href="#HTML5">HTML5</a>
<a class="nav-link" href="#CSS3">CSS3</a>
<a class="nav-link" href="#Javascript">Javascript</a>
<a class="nav-link" href="#C#">C#</a>
<a class="nav-link" href="#C++">C++</a>
</nav>
<section id="HTML5" class="main-section">
<header>HTML5</header>
<p></p>
<p></p>
<code></code>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<section id="CSS3" class="main-section">
<header>CSS3</header>
<p></p>
<p></p>
<code></code>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<section id="Javascript" class="main-section">
<header>Javascript</header>
<p></p>
<p></p>
<code></code>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<section id="C#" class="main-section">
<header>C#</header>
<p></p>
<p></p>
<code></code>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<section id="C++" class="main-section">
<header>C++</header>
<p></p>
<p></p>
<code></code>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
</main>
</body>
</html>
<style>
#navbar {
position: fixed;
}
@media screen {max-width: 800px;}
ul {
background-color: aliceblue;
}
}
</style>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
.
Challenge: Build a Technical Documentation Page
Link to the challenge: