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 trialChristine Gossain
1,117 PointsIf 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?
1 Answer
David Bath
25,940 PointsThe 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.
pal seren
Front End Web Development Techdegree Student 515 Pointspal seren
Front End Web Development Techdegree Student 515 Pointswhat are other type of border styles other than ''solid'' ???