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 trialJames Bristow
6,210 PointsPlease help, my profile picture seems to be unaffected by the .profile-photo css styling!
I'm using Chrome and added the css .profile-photo styling exactly like in the video, I even added 'clear: both;' and the photo is behaving as if i never added the styling. Any idea what I'm doing wrong?!
about css:
.profile-photo { clear: both; display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
about.html:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>James Bristow | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>James Bristow</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/Barbarian.jpg" alt="Picture of a barbarian" class="profile-photo"> <h3>About</h3> <p>Hi, I'm James Bristow! This is my professional design portfolio where I post all my favorite work!</p> <p>If you'd liek to follow me on Twitter, my usename is <a href="http://twitter.com/JamesMBristow">@JamesMBristow</a>.</p> </section> <footer> <a href="http://twitter.com/JamesMBristow"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/james.bristow.14"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>Ā© 2014 James Bristow.</p> </footer> </div> </body> </html>
THANKS!!
2 Answers
Umar A
4,041 PointsI tried your code and it works!
Ken Alger
Treehouse TeacherWorks for me as well.