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 How to Make a Website Customizing Colors and Fonts Use Color in CSS

Sean Flanagan
Sean Flanagan
33,235 Points

Border colours

Hi guys and girls. How are we today?

I've typed in my own border colour, but when I save my work and refresh my web page, although the text and background colours are clearly visible, I see no border colour. What should I do please?

Thanks.

Sean

Could you paste your CSS here so we can check it out?

2 Answers

Well, you have changed the border color, it's just that your border is currently 0 pixels wide.

Replace border-color: teal; with a rule that will set width, style and color of the border in a single declaration:

border: 3px solid teal;
Sean Flanagan
Sean Flanagan
33,235 Points

Dino, you're a star! I've followed your directions, refreshed the browser and the border is visible. You've just earnt the Best Answer! Thank you very much indeed! :-D

Sean

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Dino. Thanks for your response.

Here's the code, as requested:

header { background: blue; border-color: teal; }

I genuinely appreciate this.

Sean

PS I've just noticed that about 5 minutes into the video, Nick Pettit says that there's no border colour right now, but he'd come to that later.