Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CRYSTAL MORRIS
Courses Plus Student 2,809 PointsWhat Is Going On With The Second Problem On Build a Responsive Website
Challenge task 2 of 2 Using .cake as your context, convert the margins on .filling from pixels to percentages.
10px / 640px = 0.015625 (Move The Decimal Over 2 Spaces)
From 0.015625 To 1.5625
<!DOCTYPE html>
<html>
<head>
<style>
/* When setting flexible margin on an element, your context is the width of the element's container.
When setting flexible padding on an element, your context is the width of the element itself. */
p {
margin: 0;
}
body {
color: #fff;
}
.container {
max-width: 800px;
}
.icing {
background-color: #B4C34F;
width: 100%; /*800px*/
padding: 10px;
}
.cake {
background-color: #f8748f;
width: 80%; /*640px*/
margin: 10px;
padding: 10px;
}
.filling {
background-color: #4FB69F;
width: 75%; /*480px*/
margin: 10px;
padding: 10px;
}
</style>
</head>
<body>
<div class="container" id="container">
<div class="icing">
<p>Icing</p>
<div class="cake">
<p>Cake</p>
<div class="filling">
<p>Filling</p>
2 Answers

Curtis Schrum
10,174 PointsIts a rounding thing.
Try 1.563 if that does not work try the entire number.

Robert Bojor
Courses Plus Student 29,439 PointsEntering the full number fixed it.
CRYSTAL MORRIS
Courses Plus Student 2,809 PointsCRYSTAL MORRIS
Courses Plus Student 2,809 PointsThanks Curtis