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