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

CSS

Sara Parker
Sara Parker
2,238 Points

how to change font or color?

I want to change font and color on my pink text under the page "About". I only want to change this. I want the rest of the text on the other pages to stay as it is. Can someone please help me?

https://w.trhou.se/nwdu9s683m

Brandon Kelly
Brandon Kelly
3,808 Points

you could give each text wrapper itself a title attribute and target it in your css document and then use the color attribute and font-style or font-family attributes.

1 Answer

Salvador Cervantes
Salvador Cervantes
10,898 Points

A couple of ways to do this. If you are using one CSS file for all three pages, then you can create a <div> right after the body and give a Class. then go to the CSS file and tag that class and give it a font color and font that you want.

Now if you have another font color/style in the middle then it wouldn't change those, because of the DOM. Other then, i don't know if I can help you out besides then creating another Css file that you can add after the first one.