Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRobert Rydlewski
3,828 Pointswhy the nav is not center as the code in the video :(
I have fallowed easy step to create max width of navbar and footer but for some reason, my text in the navbar is not aligned with the text I below as in the video.
I would have to make extra changes by myself adding extra code and make the code more complex... :( I wanna have the same result as the author of the video even though the code looks exactly the same .. I can't find the issue
1 Answer
G N
10,206 PointsI see a syntax error on line two:
<div class"container">
should be:
<div class="container">
Robert Rydlewski
3,828 PointsOMG!!!! I am so embarrassed 😩 Thanks a lot. I appreciate it. Happy coding
Robert Rydlewski
3,828 PointsRobert Rydlewski
3,828 Points<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Best City Guide</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/style.css"> </head> <body>
</body> </html>
/* ================================= Base Element Styles ==================================== */
body { line-height: 1.6; color: #3a3a3a; margin: 0; }
h1 { margin-top: 0; }
a {
}
/* ================================= Base Layout Styles ==================================== */
/* ---- Navigation --- */
.name { margin: 0; }
/* ---- Layout Containers ---- */
.container { width: 70%; margin: 0 auto; }
.main-header { background: #3acec2; padding: 1em 0; }
.main-footer { text-align: center; padding: 2em 0; background: #d9e4ea; }
/* ---- Page Elements ---- */