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

Gerald Susanteo
seal-mask
.a{fill-rule:evenodd;}techdegree
Gerald Susanteo
Front End Web Development Techdegree Student 7,117 Points

my code isnt working

So im coding for my profile page and when i started coding:

<!doctype html>
<html>
<title>Gerald's Experiences</title>
<link rel="stylesheet" href="experience style.css">
<body>
  <nav>
    <ul class="main-nav">
        <li class="name">Gerald Susanteo</li>
    <li><a href="index.html"target="_blank">Home</a></li>
    <li><a href="experiences.html"target="_blank">Experience</a></li>
  </ul>
</nav>
</body>
</html>
* {
  margin:0;
  padding:0;
  text-decoration: none;
}

.main-nav {
list-style: none;
display:inline-block;
}

when i want to edit it using css no changes happen to my .main-nav section

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

Question updated with code formatting. Check out the Markdown Cheatsheet below the Add an Answer submission for syntax examples, or choose Edit Question from the three dots next to Add Comment to see how I improved the readability.

1 Answer

dominik steele
dominik steele
7,751 Points

I believe your file path to your css is wrong or missing a /

<link rel="stylesheet" href="experience/style.css">