Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Adding Pages to a Website Style New Pages

I can't get my profile photo to show up on my about page. (Using Google Chrome)

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Eleazar Villarreal | Web Developer</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>Eleazar Villarreal</h1> <h2>Web Developer</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/eleazar.jpg" alt="Photograph of Eleazar Villarreal" class="profile-photo"> <h3>About</h3> <p>Hi, I'm Eleazar Villarreal. This is my developers portfolio where I share all of my work.</p> <p>If you'd like to follow me on Twitter, my username is <a href="https://twitter.com/EleazarV7">@EleazarV7</a>.</p> </section> <footer> <a href="https://twitter.com/EleazarV7"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="https://www.facebook.com/evill31"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>© 2015 Eleazar Villarreal.</p> </footer> </div> </body> </html>

This is the CSS I'm using.

.profile-photo { clear: both; display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }

1 Answer

Hello Eleazar, you have a typo ;) just before your equal-sign ( = ) there is a hyphen-minus ( - ). This should work:

<img src="img/eleazar.jpg" alt="Photograph of Eleazar Villarreal" class="profile-photo">

Wow, that was a silly mistake. Thank you so much for that help though! It works now (: