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 trial

Rebecca Jensen
11,580 PointsUsing FlexBox for my own project - am I targeting correctly?
I am trying to use FlexBox on my own website project (my resume site), beginning with the navigation.
My HTML:
<nav class="navigation">
<ul>
<li><a href="index.html" id="current" title="Welcome">Welcome</a></li>
<li><a href="portfolio.html" title="Portfolio">Portfolio</a></li>
<li><a href="resume.html" title="Resume">Resume</a></li>
<li><a href="contact.html" title="Contact">Contact</a></li>
</ul>
</nav>
My CSS:
nav ul {
display: flex;
justify-content: center;
}
nav ul li {
justify-content: center;
}
Applying the flex property seems to do nothing. I know that my CSS file is appropriately linked, as I've applied many other styles on the page that are working. I originally built the page using Bootstrap columns (see rebeccajensen.online), but am trying to use FlexBox instead. My thinking is that it's a lighterweight solution for layout positioning than linking to a huge Bootstrap file, of which I only use a tiny slice of its features.
Anyhoo- any insight as to why my FlexBox properties are not working? Am I targeting the wrong things?
1 Answer

james south
Front End Web Development Techdegree Graduate 33,271 Pointsflexbox has sets of properties for the parent container and for the child items. justify-content is a parent property so i don't think it is doing anything in your nav ul li rule.
Rebecca Jensen
11,580 PointsRebecca Jensen
11,580 PointsAargh! A 'hard reload' of the page made the changes appear. I don't know why that's necessary for a CSS style update, but that's what fixed it.