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 Responsive Web Design and Testing Build a Three Column Layout

Ho Sun Lee
Ho Sun Lee
2,003 Points

the list of contact info is centered, how do I make it not centered? I tried text align, but it wouldn't work.

I gave the ul an id (contact) and wrote #contact li {text-align: left;}

Should i not give it an id, and just use the class? And also, what happens if I have both a class and an id in the same element?

Maybe you should add the code.

2 Answers

Caroline Hagan
Caroline Hagan
12,612 Points

Ho Sun Lee if you can post the code you are working on, we can see where the issue lies.

check our code to see if you already have a rule targeting ul's or li's and make the rule more concise to that one particular instance. If you don't have any other rules, try selecting the list instead of the list item. But like everyone else has said it would be a lot easier to help if you had code...