Hello community,
Complete newbie here, trying to finish my product landing page project.
I keep running into problems with my formatting (seen below). When I find a way to fix one, another 3 pop up. When I start from scratch again, I seem to manufacture even cookier problems. My latest two pet peeves on my project are:
Being unable to customize my unordered lists within only my header
and my header being spaced from the top of the window, so scrolling through my page makes it appear a little at the top of the screen (fixed position header).
Anyone able to hold my hand a bit? Much appreciated.
-Alex
HTML
<header id="header">
<img id="header-img" src="https://cdn.pixabay.com/photo/2019/02/24/11/49/icon-4017417_960_720.png" alt="logo">
<h1 id="title">Alex's Web Development</h1>
<nav id="nav-bar">
<ul>
<li>What I do</li>
<li>Who I am</li>
<li>How it works</li>
</ul>
</nav>
</header>
<div id="container">
<div id="what-i-do">
<h2>I do what I do when I do what I do. </h2>
<p>Here is where I would write a nice summary of things I would do, or could do. So far I still can't do what I want to do, and I do not entirely understand the things I do do. Don't feel bad if you laughed at 'do do'.</p>
</div>
<div id="who-i-am">
<h2>This would be a section dedicated to telling you who I am.</h2>
<p>And it would probably attempt to be philosophical, or witty, and feel woefully short of both marks. At least for now I need it to be long enough to understand why my margins are not lining up how I would like them to.</p>
</div>
<div id="how-it-works">
<h2>This would be a section dedicated to telling you how the genius of web development works.</h2>
<p>And as soon as I figure out the answer, even a little bit, I will put it here. Seriously, help me. I am so lost...</p>
</div>
</div>
***CSS***
header {
display: flex;
position: fixed;
background-color: white;
width: 100%;
height: 75px;
justify-content: space-between;
flex-direction: row;
@media (width:600px) {
flex-direction: column;
flex-wrap: wrap;
}
}
#title {
align-content: start;
}
nav{
padding: 10px;
}
#nav-bar ul {
text-decoration: underline;
list-style: none;
display:flex;
justify-content:space-between;
padding: 0px 50px;
width: 35vw;
flex-direction: row;
}
#header-img {
max-height: 75px;
border-radius: 5px;
margin-left: 10px;
}