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
Samuel Fils
1,392 Pointsstyling
I have 2 nav element and I want to style them differently but used <style> nav a {} </nav> styles both of them.
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! I wish I could see an example of what you mean, but if you have two similar elements that you want styled differently, my suggestion would be to give them each their own class and then style the classes associated with them.
Hope this helps!
Samuel Fils
1,392 PointsSamuel Fils
1,392 PointsThx guess I need to learn classes
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherKeep going along this path and you'll be there in no time flat!