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

Adan Botello
Adan Botello
1,830 Points

I cant get my image round or with a border radius, is my code wrong?

Here is my HTML code:

<img src="https://placeimg.com/200/200/tech" alt="Adan Botello, Web Developer" class="main-image">

Here is my CSS code:

.main-image { border: solid 4px black; border-radius: 50%; }

2 Answers

Steven Parker
Steven Parker
231,248 Points

I see a nice round border around the image when I try your complete code.

Are you using a workspace? If so, perhaps your latest changes are not being displayed. Whenever you make a change in a workspace there are two steps to display it:

  1. save the changes using the editor menu or Ctrl-S shortcut
  2. refresh your browser to update the display

See if performing both of those steps (in order) makes your round border visible.

Adan Botello
Adan Botello
1,830 Points

Using Ctrl-S worked! i was using save from the file menu to save and it was working pretty good until then, from now on I will use that shortcut. Thanks everyone for helping!

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

Seems fine to me, can you post the rest of your html and css code to see if something is Interrupting the css from being applied?

Adan Botello
Adan Botello
1,830 Points

heres all my CSS code: body { font-family: "Arial"; }

.main-image { border: solid 4px black; border-radius: 50%; }

Adan Botello
Adan Botello
1,830 Points

heres the rest of my HTML code: <!DCOTYPE html> <html> <head> <title>Adan Botello's Resume</title> <link rel="stylesheet" href="resume.css"> </head> <body> <img src="https://placeimg.com/200/200/tech" alt="Adan Botello, Web Developer" class="main-image"> <h1> Adan Botello, Web Developer</h1> <h2>Summary of Qualifications</h2> <ul> <li>Experice as a freelance web developer</li> <li>Experience with HTML and Javascript</li> <li>Bachelor of Science, Econimics</li> </ul> </body> </html>