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

Cant figure it out

Hi,

Im trying this boxes to look like in this page. I want to make them the same but i get some errors.

Heres my code

http://codepen.io/anon/pen/dPoKmE

Does anyone know how can i fix it? it has be also responsive so it resizes and later one i can add media queries to make it mobile.

3 Answers

If I understand what you're looking for correctly, add border-radius: 25px; in your .box features. (25px is arbitrary. Play with the values.)

Hi, thank you for the help but I'm not looking for border-radius.

Im looking for the images to be same width as the red background .
The text to be under it with the image proportions in the middle without going out with the box and having e.g 10px. I hope this is better : p

Maybe try box-sizing: border-box; with the img selector?

what do you mean?

I'm not too familiar with CodePen, but I can't see the images to play around with it.

Um, it does not make any effects : /

And believe me i could do it before :( this is soo anojjing, i could just do it anyways . I think i gonna spend 2h per day in iOS and here so i don't lose what i learned there.

Have you tried:

  background-size: contain;

This does not work either.

My problem is that i want to make this 3 columns horizontal like on the original webpage. Then underneath it , theres text that is like centred between margins on it and when you resize the window , it stays the same. i just can't remember how its done.