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!

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

CSS CSS Basics (2014) Getting Started with CSS External Style Sheets

Sidney Villanueva
Sidney Villanueva
Ubora | Web Development Techdegree Student 1,893 Points

Is 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

Sidney 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.