Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,939 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.