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

Scott Yardley
Scott Yardley
20,663 Points

Why won't my profile picture in preveiw turn out rounded when I add the profile code?

I'v copied the code exactly from Nick's tutorial, but the photo still remains unaffected. Any ideas?

Hi Scott,

Can you post your HTML and CSS related to the profile pic please?

Thanks

-Rich

Scott Yardley
Scott Yardley
20,663 Points

sure, here it is

<!DOCTYPE html> <html> <head> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans+Condensed:300|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <meta charset="utf-8"> <title>Scott | Designer </title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Scott Yardley</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html" >Portfolio</a></li> <li><a href="about.html" class="selected">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <img src=“img Scott.jpg" alt:"picture of Forgiven"> <h3>About</h3> <p> </p> <p><a>href="http://twitter.com/Forgiven@fy">Forgiven@fy</a>.</p> </section> <footer> <a href="http://twitter.com/forgiven@christart.com"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/forgiven@christart.com"><img src="img/facebook-wrap.png" alt="Facebook Logo"class="social-icon"></a> <p>© 2014 Scott Yardley</p> </footer> </div> </body> </html>

2 Answers

Joy Kesten
STAFF
Joy Kesten
Treehouse Guest Teacher

Hi Scott Yardley did you set the boarder- radius to the same % as Nick?

img {
    border-radius: 100%;
}

Sorry, I can't remember exactly what % he used

Scott Yardley
Scott Yardley
20,663 Points

No I didn't, it wasn't in the tutorial. Though when I did add it the picture turned oval instead of round. Why

Joy Kesten
STAFF
Joy Kesten
Treehouse Guest Teacher

I'm guessing it's because your original picture wasn't perfectly square.