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 CSS Basics (2014) Enhancing the Design With CSS Text Shadows

order of operations in text shadow.

Simple question out of curiosity more than having any issues. Is there any particular reason that in all other areas where order of operation is used, the top right bottom left (or clockwise) order is used, but when applying shadow to text is is the x axis that is addressed first?

1 Answer

Steven Parker
Steven Parker
231,269 Points

I think it's typical for x (horizontal) to come before y (vertical) in settings that use two values (one for each dimension). Other examples would include "background-size" and "background-position".

The "clockwise from top" ordering is the typical arrangement for things that use four values.