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

Abdi Ahmed
PLUS
Abdi Ahmed
Courses Plus Student 1,667 Points

css 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

Tibor Ruzinyi
Tibor Ruzinyi
17,968 Points

use the border-radius : x(your number)px to do rounded corners. border-radius:20px; For media qeries you have a whole course here

1 Answer

Vasilij Zhukov
Vasilij Zhukov
1,790 Points

For 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