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

General Discussion

Title error

The title of the website is moved to the left side rather than in the centre, i have checked the code, i don't know what may be causing this issue. Help needed please!

5 Answers

What title? <title>? Or do you mean like a <h1> or so?

Title meaning the heading h1 and h2. I have put the code below:

<link href='http://fonts.googleapis.com/css?family=Lobster|Open+Sans:700italic,400,700,800' rel='stylesheet' type='text/css'>

h1, h2 { font-family: 'Lobster', sans-serif; }

<link href='http://fonts.googleapis.com/css?family=Lobster|Open+Sans:700italic,400,700,800' rel='stylesheet' type='text/css'>

If you want text to be centered you can use css' text-align property. Is this what you need?

h1, h2 { font-family: 'Lobster', sans-serif; text-align: center; }

Ahhh yes thank you, the text-align:center was neede to make it go into the middle. Thank you for your help :)