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 How to Make a Website Adding Pages to a Website Style New Pages

Puvanjeet Dhaliwal
Puvanjeet Dhaliwal
18,533 Points

in creating the about page i cannot round the corners of the image

in creating the about page i cannot round the corners of the image

Nkosi Ndlovu
Nkosi Ndlovu
9,652 Points

Hi Puva. Are you using "border-radius"?

2 Answers

Hi Puva,

The following code applied to the appropriate style should allow you to add rounded corners:

border-radius: 5px;

The above would apply the same to all corners whereas the below would only apply to the top left and top right corners:

border-radius: 5px 5px 0 0;

Depending on the browser you are using you may need to add a prefix to the style, e.g.

border-radius: 5px 5px 0 0;
-moz-border-radius: 5px 5px 0 0;
-webkit-border-radius: 5px 5px 0 0;

This might help to explain further: http://css-tricks.com/almanac/properties/b/border-radius/

Hope that helps

-Rich

alexspencer
alexspencer
5,194 Points

you can also do something along the lines of this...

'''css

.element { border-top-right-radius:5px; border-bottom-right-radius:5px;

{

to give you more control....