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 trialEnzo Cnop
5,157 PointsCan't get image to become circular.
This seems like everyone's issue for this challenge, but I haven't been able to find a solution in the current questions. Basically, why won't my image border apply? Below is my code, but looking at the dev console on the html page, it seems like the browser is only seeing the font styling, and is skipping over the image styling. One thread even said the border-radius property can't take percentages, but in the video Treasure clearly uses %. Has something changed since then?
CSS - resume.css
body {
font-family: "Arial";
};
.main-image {
border: 4px solid black;
border-radius: 50%;
};
HTML - resume.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Enzo's Resume</title>
<link rel="stylesheet" href="resume.css">
</head>
<body>
<img src="http://placeimg.com/200/200/tech" alt="Image of Enzo Cnop" class="main-image">
<h1>Enzo Cnop, Web Developer</h1>
<h2> Summary of Qualifications</h2>
<ul>
<li>Experience as...</li>
<li>Experience with...</li>
<li>Bachelor of Arts, English Literature</li>
</body>
</html>
Enzo Cnop
5,157 PointsThank you Jack! I think it was the ' ; ' after my curly braces on the CSS that was messing everything up. I'd give you best answer, but it won't let me for some reason...
Jack Spangenberg
643 PointsEzra -
It was a comment, I will make it an answer.
Michael Cockrell
Courses Plus Student 542 Pointsyou must have went through some javascript courses first? i do a lot of javascript so its almost instinct for me now to add semicolon after curly braces.
1 Answer
Jack Spangenberg
643 PointsYour code worked for me when I removed the ; after the } on both of your styling elements. Make sure you don't have browser cache.
Jack Spangenberg
643 PointsJack Spangenberg
643 PointsYour code worked for me when I removed the
;
after the}
on both of your styling elements. Make sure you don't have browser cache.