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
Tony McCabe
8,445 PointsScalable images
Convert the padding on .cake from pixels to percentages.
How to change padding pixels to percentages?
5 Answers
Steven Schweibold
7,742 PointsTo convert padding to a percentage take the class's padding size in pixels divided by the class's width in pixels.
Chase Lee
29,275 PointsFirst change it toems and then move the decimal two places to the right.
Tony McCabe
8,445 Pointstried it still say's wrong. 0.625ems move it two places to the right!
Chase Lee
29,275 PointsTry moving the px size two places to the right.
Tony McCabe
8,445 PointsWay past you thiere finnished the answer 10/600 =0.02 answer 2.00
Anthony Hight
30 PointsAnthony Hight
30 PointsThank you!