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 trialmichaelwong4
3,010 Pointsborder radius error
when I put in the code: border radius:100%; nothing happens
I am using google chrome
and this my main.css code:
/**********************************************
OTHER
**********************************************/
a {
text-decoration: none;
color:red
}
img {
max-width: 100%;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
#logo {
text-align: center;
margin: 0;
}
/************************************************************************
NAV
************************************************************************/
nav a.selected:visited {
color:#000
}
nav a:hover{
color: #fff
}
/*****************************
favorite colors
****************************/
p.favoritecolor:hover{
color: #D16B05;background-color:#D16B05
}
p.favoritecolorA:hover{
color:#225;background-color:#225
}
html{
font-family:'Dancing Script';}
#f5f
}
/********************
GALLERY
************************/
#gallery {
list-style: none;
}
#gallery li {
float:left;
width: 45%;
margin:2.5%;
}
}
#gallery a p {
margin: 0;
padding: 5%;
font-size:0.75em;
}
/****************************************
LIST
***************************************/
ul li {
list-style: none;
}
nav li {
display: inline-block;
}
li.selected {
text-align:right
}
/*************************************
FOOTER
************************************/
footer.icon {
color:#f04831
}
/**************************************************************
page:about
**************************************************************/
.profile-photo {
display: block;
max-width: 150px;
margin: 0 auto 30px;
border-radius: 100%;
}
5 Answers
Gabriel Roczanski
Courses Plus Student 2,136 PointsIf you want make circles with border-radius your should use ```border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%;
michaelwong4
3,010 Pointsthat does not work either
Gabriel Roczanski
Courses Plus Student 2,136 PointsAre you applying .profile-photo on <img>
tag or the parent?
michaelwong4
3,010 Pointsyes
Caroline Hagan
12,612 PointsYou need to define a width and height.. you can't set a border-radius on something you don't know the size of to apply the border to.