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!
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
Abdi Ahmed
Courses Plus Student 1,667 Pointscss box model
Hi , I wanted to create a css box model to display a weather forecasting content. I have something started here;
http://jsfiddle.net/aabdi406/h0o6d735/
My questions are :
How can I add the box model a rounded corners ?
How can I make so it responds to various media queries ?
Thanks in advance
1 Answer

Vasilij Zhukov
1,790 PointsFor rounded corners use border-radius property (http://jsfiddle.net/h0o6d735/2/)
For media queries just add @media to your css after default selector (http://jsfiddle.net/h0o6d735/3/)
More info you can find in CSS Basics: Designing with the Latest Features
Tibor Ruzinyi
17,968 PointsTibor Ruzinyi
17,968 Pointsuse the border-radius : x(your number)px to do rounded corners. border-radius:20px; For media qeries you have a whole course here