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

General Discussion

Nav float problem ( stage4/finishing the css)

My nav is not responding to the code. I checked both html and css but haven't found my mistake yet. here's my css and thanks for the help:

body{
    font-family: 'Nunito', sans-serif;
    color: #FAF3BC;
    background: #420600 url("img/bg-texture.jpg") repeat;
}

a {
    color: #4FB69F;
    text-decoration: none;
}

h1{
    font-size: 1.750em;
    letter-spacing: -1.5px;
}

h2{
    font-size: 1.500em;
    color: #B4C34F;
}

.btn{
    color: #FAF3BC;
    background: #4FB69F url('img/texture.png') no-repeat right top;
    padding: 15px 30px;
    margin: 40px 0px;
    border-radius: 25px;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #4cc4a7;
}

ul.nav {
    margin: 120px 0 0 0;
    list-style: none;
    float: right;
}

3 Answers

did you try .nav ul ?

Just found my mistake, thanks!

nav ul { margin: 120px 0 0 0; list-style: none; float: right; } Add this line to you css: .nav ul li { float: left;

}