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

HTML How to Make a Website Customizing Colors and Fonts Use Color in CSS

Dave Hanna
PLUS
Dave Hanna
Courses Plus Student 2,969 Points

Not getting a border color where my name is

My border color is set to green, but comes out white when I refresh the URL.


a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 5%;
}

#logo {
 text-align: center;
  margin:0;
}

a {
 color: #007ba7; 
}

header {
   color: #007ba7; 
   border-color: #599a68;
}


h1, h2 {
  color:#007ba7;
}

nav {
  background: #599a68; 
}
rydavim
rydavim
18,814 Points

I've added some formatting and syntax highlighting for your code. You can do this using the following markdown:

Posting Code on the Treehouse Forums

1 Answer

rydavim
rydavim
18,814 Points

Welcome to Treehouse!

Looks like you haven't defined a border, so setting the color won't have an effect. Try using the border shorthand.

header {
  /* border: border-width border-style border-color; */
  border: 5px solid #599a68;
}

Hopefully that helps, but please let me know if you have any questions! Happy coding! :)