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
Darian Wilkin
3,568 PointsJust a funny inconsistency
In a previous CSS video by Treasure, she mentions that she always writes border styles like this:
border: solid black 4px;
Even though the order doesn't matter. But in this video she writes:
border: solid 4px black;
Not a big deal, just thought it was funny.
1 Answer
Steven Parker
243,656 Points
What's funnier is that neither conforms to the order in the formal syntax.
According to MDN, the formal syntax for the shorthand border property values is:
<br-width> || <br-style> || <color>
So following that, an example would be:
border: 4px solid black;
Darian Wilkin
3,568 PointsDarian Wilkin
3,568 PointsThat's good to know, thanks!