"iOS 7 SDK Highlights and Features" was retired on May 31, 2020.

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

CSS

Flex Box seems to work inconsistently with video tutorial.

And this is understandable since the video is roughly a year old, or maybe I'm just coding it wrong. The defaults for "justify content" seems to be a space between. and the flex property itself forces all the elements in it to become the same height.

This causes trouble if I try to make the logo larger than the nav. Maybe I'm wrong, but here is the code I used. Not sure if I should include the HTML.

h1,
h2,
h3,
p {
    margin: 0;
}

/**************
basic stylings
**************/
.titlething {
    text-align: center;
}

.head {
    padding: 20px;
}

.logo,
.main_nav li {
    text-align: center;
    border-radius: 5px;

}

.logo a,
.main_nav a {
    display: block;
    padding: 10px;
}

.main_nav li { 
    margin: 10px auto;
}

.logo a {

padding: 20px; }


p {
    padding: 10px 5px 0 5px;
    }

.article1,
.article2 {
    padding: 15px;
}

footer {
    height: 50px;
    text-align: center;
    padding: 20px;
}

.titlething a {
    text-decoration: none;
    display: block;
    padding: 40px;
    color: black;
}


/*****************
Media Queries
*****************/

@media screen and (min-width: 786px) {

.main_nav {
    display: flex;
}