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

HTML How to Make a Website CSS: Cascading Style Sheets Take a Mobile-First Approach

It is not in the middle.....

it is not in the middle

BERNIE MORELAND
BERNIE MORELAND
516 Points

Mine isn't either.

Here's the index.html code...

<body> <header> <a href="index.html" id:"logo"> <h1>Bernie Moreland</h1> <h2>Expert Cupcake Baker</h2>
</a>

Here's my CSS code... #logo { text-align: center; margin: 0; }

I have checked and rechecked. Nick's and mine are the same.

3 Answers

Since your code is not posted here, I can't tell exactly what the problem is. However, I can make a couple of suggestions. If you look below the video window, there is a tab for questions with a number. If you click on that tab, you can see questions others have had and the answers that were given. You may very well find the solution to your difficulty there. Failing that, go carefully over your code and make sure you haven't forgotten any syntax elements, like closing brackets and the like. Often, that's the problem. It may even be in some prior line of code, so be aware of that. Good luck!

You have to write id="logo" instead of id:"logo" . So change : to =.

You spotted the obvious that the rest of us overlooked, at least, in the latest entry above, by Bernie. Bravo!

BERNIE MORELAND
BERNIE MORELAND
516 Points

Thanks. Very helpful. I overlooked that.

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Ethan,

Like Kathryn said, it would help us if we could see your code.

Would you be able to paste your code into an answer on this thread and I will take a look for you.

From the information you have provided so far I am unable to help any further.