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
Laksakan Krishnapillai
Courses Plus Student 1,839 PointsTitle 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
Arthur Verschaeve
20,816 PointsWhat title? <title>? Or do you mean like a <h1> or so?
Laksakan Krishnapillai
Courses Plus Student 1,839 PointsTitle 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; }
Laksakan Krishnapillai
Courses Plus Student 1,839 Points<link href='http://fonts.googleapis.com/css?family=Lobster|Open+Sans:700italic,400,700,800' rel='stylesheet' type='text/css'>
Arthur Verschaeve
20,816 PointsIf 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; }
Laksakan Krishnapillai
Courses Plus Student 1,839 PointsAhhh yes thank you, the text-align:center was neede to make it go into the middle. Thank you for your help :)