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

Irfan Setiadi
PLUS
Irfan Setiadi
Courses Plus Student 2,638 Points

Need help to check my css, (header, nav and footer) different result from Nick Video

header : still left the room upper the header sentence <h1>

nav : inline-block didn't worked

footer : fb & twitter img won't became smaller according to weight & height.

body {
    background-color:Wheat;
}

a {
    text-decoration: none;
}

#isi {
    max-width: 940px;
    margin: 0 auto;
    background-color:Linen;
    padding: 0 5%;
}

#logo {
    text-align: center;
    margin: 0;
    color: black;
    font-family: 'Crimson Text', serif;
    margin: 15px 0;
    font-size: 1.75em;
    font-weight: normal;
}

header {
    background: WhiteSmoke;
    border-color: Black;
    float: left;
    margin: 0 0 30px 0;
    padding: 5px 0 0 0;
    width: 100%
}

nav {
    background: WhiteSmoke;
    text-align: center;
    padding: 10px 0;
    margin: 20px 0 0;
    font-size: 1.5em;
}

nav a, nav a:visited {
    color:Black;
}

nav ul {
    list-style: none;
    margin: 0 10px;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav a {
    font-weight: 800;
    padding: 15px 10px;
}

footer {
    font-size: 0.75em;
    text-align: center;
    padding-top: 50px;
}

.social {
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

thank you, have a good day

1 Answer

Cory Harkins
Cory Harkins
16,500 Points

header { background: WhiteSmoke; border-color: Black; float: left; margin: 0 0 30px 0; padding: 5px 0 0 0; width: 100% <-----------------missing a semi-colon }

Without your HTML information, all my guesses would be a stab in the dark. Please post your mark-up. :)