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 How to Make a Website CSS: Cascading Style Sheets Style the Basic Elements

Patrick DeSisto
Patrick DeSisto
3,549 Points

Stage 4: Challenge task 3 0f 3.

In stage 4: challenge question 3, about Cascading style sheets, it directs me to, "Select the element with the ID logo and center the text using text-align."

My answer is the following:

(hash mark) logo { text-align: center; }

I am told I this is wrong, quote, "Bummer! Check the text-align value in your CSS".

I am confused. Why is this wrong?

1 Answer

In this case the logo is using the id attribute so you'd need to use:

#logo {
  text-align: center;
}