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 trialPuvanjeet Dhaliwal
18,533 Pointsin 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
2 Answers
Rich Bagley
25,869 PointsHi 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
5,194 Pointsyou 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....
Nkosi Ndlovu
9,652 PointsNkosi Ndlovu
9,652 PointsHi Puva. Are you using "border-radius"?