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 Treehouse Club: CSS My First Web Page Comments, Selectors, and Syntax

Christine Gossain
Christine Gossain
1,117 Points

If you remove "solid" why does the top bar disappear? Why didn't we have to put solid for the background colour?

If you remove "solid" why does the top bar disappear? Why didn't we have to put solid for the background colour?

what are other type of border styles other than ''solid'' ???

1 Answer

David Bath
David Bath
25,940 Points

The CSS property border accepts 3 values: border-style, border-color, and border-width. If border-style has not been specified earlier in the CSS code then the browser doesn't know what you want it to be, and it ends up with no border. The CSS property background-color only uses a single value, the color itself.