Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.