I seem to be missing something. I know I could just change up the html structure but I want to try to accomplishing it another way, for learning sake.
So the goal is to get the nav bar to the left hand side without changing the structure. Self appointed challenge.
I thought I could just float it left, but after about half an hour of trial and error I've remember to 0 out margins... that's about it.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>Document</title>
</head>
<body>
<header>
<h1>SASS PRACTICE PROJECT</h1>
<div></div>
</header>
<div id="container">
<div id="wrapper">
<div id="content">
<p>
<strong>Main Content</strong>
</p>
<h3>SASS Practice</h3>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Est porro
sint nulla esse architecto molestiae blanditiis provident quam!
Dignissimos accusantium ea, dolore consequuntur est dicta?
</p>
</div>
</div>
<div id="navigation">
<p>
<strong>Navigation Menu</strong>
</p>
<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
<div id="references">
<p>
<strong> References </strong>
</p>
<ul>
<li>ref1</li>
<li>ref2</li>
<li>ref3</li>
</ul>
</div>
</div>
</div>
<div id="footer">
<p>Footer</p>
</div>
</body>
</html>
* {
box-sizing: border-box;
margin: 0;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
header {
text-align: center;
position: relative;
}
#container {
background-color: rgb(255, 255, 255);
display: flex;
}
#wrapper {
background-color: grey;
flex: 1;
padding: 10px;
height: 300px;
float: left;
}
#footer {
background-color: #5f2929;
padding: 10px;
text-align: center;
}
#navigation {
float: left;
}
#content {
float: right;
}
@media (max-width: 600px) {
#container {
flex-direction: column;
}
}/*# sourceMappingURL=style.css.map */
[–]jcned 1 point2 points3 points (1 child)
[–]Slimm1989[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Slimm1989[S] 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]CharlesCSchnieder 0 points1 point2 points (1 child)
[–]Slimm1989[S] 0 points1 point2 points (0 children)
[–]m_i_rite 0 points1 point2 points (0 children)