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 trialMeg Cusack
11,448 PointsAlignment of text in header widget Zac added.
My text in the header widget is left aligned instead of center aligned like Zac's. I don't see what I did differently to cause this?
3 Answers
Ray Whitaker
2,544 PointsCan you show the css code you are using to align the text?
Meg Cusack
11,448 PointsDid he show a place to edit the CSS for that header widget? I don't see where...
Victoria Felice
14,760 PointsThey just dragged/copied the style.css file provided in the project download section. You can find the css code there. I think that's why they actually didn't post the code.
Meg Cusack
11,448 PointsThanks, Victoria. That is helpful
Victoria Felice
14,760 PointsMeg, did you manage to fix it? I had the same problem and had to redo everything, starting from this video https://teamtreehouse.com/library/how-to-make-a-website-with-wordpress/customizing-wordpress-themes/customizing-wordpress-theme-files. I made sure my css code .navbar {background-color: #220e10;} works in this early stage.
Meg Cusack
11,448 PointsI didn't do anything to fix it but for some reason, when I just came back to refresh on these videos (several months later), the text center-aligned fine this time?! So, I thought maybe they had updated the css styles file or something between then and now.
Victoria Felice
14,760 PointsI am glad that you don't have this problem anymore. :)
Paul Roberts
7,928 PointsPaul Roberts
7,928 PointsHi Meg, My text in the header widget, is also left aligned - unlike Zac's. I don't suppose you found out why did you? The CSS in the project files do state to "align: center", but I'm unsure as to why it doesn't work for me...