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

Gard Mikael Fjeldavli
19,416 PointsMultipel strokes to text in CSS
Is there any way of adding multiple strokes to your text in CSS. Lets say I have a heading, and want to add a outline stroke to it, and then a second stroke outside of the first stroke. I know I can use multiple text-shadows, but I want the outline to be solid.
1 Answer

Placid Rodrigues
12,630 PointsHey Gard,
Use multiple text shadows on your text element to achieve what you want. For example:
text-shadow: 2px 2px 1px #fff, 4px 4px 0px #000;
Hope that helps, Placid
Gard Mikael Fjeldavli
19,416 PointsGard Mikael Fjeldavli
19,416 PointsI know you can add multiple text-shadows (as I mentioned in the question), but that doesnt really give two strokes. It gives two shadows. It would work if you could set the "size" of the shadow. But text-shadow doesent give you that possiblity.