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 trialRyan Schmelter
9,710 PointsWhen I write in border color after background in css rule, it deactivates background. Same in reverse.
Example:
header { background: #6ab47b border-color: #whatever } Once I add border-color, the orange indicating background is active turns to black. Same thing happens to border-color if i switch them.
1 Answer
Steven Parker
231,275 PointsYou forgot to put a semicolon (";
") between your properties.
Without the semicolon, the added code causes a syntax error and the whole line is ignored.
It's a good practice to always end a property and value pair with a semicolon, even if it's the only one in the rule.
Ryan Schmelter
9,710 PointsRyan Schmelter
9,710 PointsThat was it. Thanks, Steven.