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

I´m stuck! Stage 4: Challenge task 3 of 3

The question is: Select the element with the ID logo and center the text using text-align

Here is my code and I do not know where is the error...

a { text-decoration: none; }

wrapper{

max-width: 940px; margin: 0 auto; }

Logo {

text-align: center; }

Thanks

3 Answers

Łukasz Czuliński
Łukasz Czuliński
8,646 Points

If logo is an ID, then you are missing the # before logo, so this should work:

#logo{
text-align: center;
}

Thanks, but I have both the hash tags at wrapper and logo, it must be something else...

I manage to solve it thanks!

Was it the capital 'L' in logo? It's always a good idea to post the solution so that any future readers who come across this will know what it is.