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 trialSidney Villanueva
Ubora | Web Development Techdegree Student 1,893 PointsIs it required to add a space between the selector and the curly brace, and between the colon and value in the styleshe?
I'm just wondering because I've been using css without adding any spaces and it works, maybe is semantically correct to do so?
1 Answer
Ryan Groom
18,674 PointsSidney Villanueva It is not required, it is more of a best practices thing... Which can also be about preference, but in my opinion, the space makes the code more readable and look less cluttered.
Sidney Villanueva
Ubora | Web Development Techdegree Student 1,893 PointsSidney Villanueva
Ubora | Web Development Techdegree Student 1,893 PointsGot it, Thank you