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 How to Make a Website Styling Web Pages and Navigation Style the Portfolio

Melissa Stout
Melissa Stout
750 Points

Image text

Why does my image text show as white? How can i change it??

3 Answers

Hmmm, please, provide the source code so it can be checked.

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

Considering the video, and considering that the WHITE color is applied to the header 's font, I'd say this happened :

header{ /*or html, or body, or any parent elements*/
   color: white;    /* or #fff or rgba(255,255,255)*/

p {
 /*...All your declarations*/

This way you are just setting the text to display as white on a white background. Make sure the WHITE TEXT is only applied to where you need it, ergo the HEADER and its descendants.

To be sure, if you cannot find a certain answer, just go style the P element, overwriting the previous color statement!

Have the best day!

Maria Victoria Reyes
Maria Victoria Reyes
17,731 Points

img p {color:black;} or img p {color:#000;}.