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.

CSS

Andrew Baisden
PLUS
Andrew Baisden
Courses Plus Student 5,132 Points

Creating a Fluid Foundation code challenge glitch?

Hey does anyone know how to get pass these tasks? I am stuck on the first challenge "Using .container as your context, convert the width of .icing from pixels to percentages." I'm sure its pretty obvious but right now I can't seem to figure it out. The answer cant be giving .icing a property of "width: ;" surely? Because it does not give me the red bar of death and it lets me move on to task 2??? If the container is the context and it has a width of 500px then surely it is 500px / 500px which is the width of .icing giving a value of 1?

I cant believe im stuck on percentage conversions... :p

3 Answers

Do you have a link to the Q.

Yeah so its 100%. As it says icing is 500px and the context is also 500px

Andrew Baisden
PLUS
Andrew Baisden
Courses Plus Student 5,132 Points

Thanks it worked! I cant believe i spent so long trying to figure that one out... I really want to get through this Build a Responsive Website project so i can start practising using percentages and em in my websites.

Least you got there, I never use PC just stick to em and always set body font-size to 16px for the base.