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

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

Navneet Singh
Navneet Singh
2,424 Points

Dash Between two words like "text-aling"

Is is necessary to put dash between all two letters in css, For ex. the word "text-align" Can't we write "text align"

3 Answers

Estelito Calayag Jr.
Estelito Calayag Jr.
5,818 Points

space character between words are not recognize by the browser

The dash is indeed necessary

jason chan
jason chan
31,009 Points

yes the dash is needed for the css to work. careful of typos

h1 {
    text-align: center;
}