Closed shreyababu closed 4 years ago
Hi, @shreyababu! I can't test without access to the files themselves, but from the screenshot, I think maybe the menu-container div never closes. See what happens if you add another </div>
in line 17.
If that does turn out to be the problem, here are some strategies I've found helpful in combating that "div soup" effect:
</div>
saying what it's closing, like this: </div> <!-- end of div.links -->
(I've also seen people use a slash instead of writing out "end of," like this: </div> <!-- /.links -->
)<section>
and <nav>
instead of <div>
s: though some <div>
s are usually unavoidable, at least this way you'll have some closing tags that have more clearly designated matches.Hope that helps, Ben
That worked! Thank you!!
Okay, great! I'll mark the issue as closed, but it'll still be here if anyone needs it.
Hi Professor Miller! I was trying to work on tutorial 8 (flexbox) of Interneting is Hard, and got stuck very early on. I got up until the subsection "Grouping Flex Items". The next thing the tutorial had us do was add a header container element after the menu container element, but whatever I tried was not working and the header container kept going right in the menu container on the rendered website, instead of below it. I tried reworking the html many times, by switching the order of where the element went (tried where it is currently, directly below the menu-container line, etc). I am using chrome to render my website. Please let me know how to fix my code in order to move on with the tutorial.
Here is what the website looks like with my current code.
Here is what is supposed to look like at this point in the tutorial.
Here is what my code looks like.