Shayna_Justus:
Iâve been working on Typesetting a Community School Page for a few days now, and Iâve been struggling to get the navigation aligned along the top. I finally got it where I wanted it, but I feel like there may have been a better way.
Hi there,
Sorry for missing your question for so long! In the final assessment answer, we align the nav menu on the right hand side; you can check the code we used here:
github.com
mdn/learning-area/blob/master/css/styling-text/typesetting-a-homepage-finished/style.css
/* General setup */
* {
box-sizing: border-box;
}
body {
margin: 0 auto;
min-width: 1000px;
max-width: 1400px;
}
/* Layout */
section {
float: left;
width: 50%;
}
aside {
This file has been truncated. show original
You can also see the live final answer here:
https://mdn.github.io/learning-area/css/styling-text/typesetting-a-homepage-finished/
For a good example of a top-aligned menu, see this one:
https://mdn.github.io/learning-area/html/introduction-to-html/structuring-a-page-of-content-finished/