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 trialShaked Gvirtsman
2,270 Pointswhy did we add 0deg to our background in the style-sheet?
If the degrees go clockwise, shouldn't the white color go from top to bottom?
1 Answer
Steven Parker
231,269 PointsThe degree is for the "to" direction, so "0deg
" means "to top
" ("bottom to top").
Shaked Gvirtsman
2,270 PointsShaked Gvirtsman
2,270 PointsSo if we would not have put the "0deg" it would be the default ("top to bottom")?
Steven Parker
231,269 PointsSteven Parker
231,269 PointsYou are correct. The default is "
180deg
" or "to bottom
".Shaked Gvirtsman
2,270 PointsShaked Gvirtsman
2,270 PointsThank you!
Steven Parker
231,269 PointsSteven Parker
231,269 PointsShaked Gvirtsman — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!