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
Alexandros S.
8,261 PointsDouble text color on text with a background image
I have a problem where I have some some text with a background image and its difficult to find a nice color that makes the text readable Is it possible to make text have two colors? LIke for example black on the outside and white in the inside, or is there some other solution for such a problem?
2 Answers
Aaron Herdzina
500 PointsThere is probably a better was to do this that I am not aware of at the moment, but you can play around with text-shadow to see if you can use it to make the text more readable, for example:
** { color: black; text-shadow: -1px 1px white, 1px -1px white; }
Hope this helps!
Alexandros S.
8,261 PointsThanks Aaron, i tried and it seems to work well. :)