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 Build the Contact Page

barnabasadedoyin
barnabasadedoyin
1,501 Points

Round edge not showing in firefox

In About Page, the round or border radius wasn't showing in firefox but showing in Google Chrome. What could be the problem? Sorry for asking here...

7 Answers

John Donnell
John Donnell
7,801 Points

"I just looked at the video and in the teachers notes it says"

There's a bug in the CSS for this video that causes the profile picture to display incorrectly in Firefox. In order to correct the issue, the clear property with the value both needs to be applied to the .profile-photo class. Here's what the corrected code looks like:

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

Ah ha,
I am using Firefox too, When I added the period the image did not show up in browser view, If I left the period off, the photo showed up but was not centered or rounded following the coding in the lesson.

But adding the period and the suggestion above to also have clear: both; it works. Yay!

John Donnell
John Donnell
7,801 Points

Are you using the newest version of firefox? Older versions you had to use -moz-border-radius: Try to update firefox to see if the problem persists.

barnabasadedoyin
barnabasadedoyin
1,501 Points

Ok John, how can i update my firefox? I taught it is automatic update.

John Donnell
John Donnell
7,801 Points

I was just giving a suggestion, You may have the latest version. Here's a link what explains how to update firefox.

https://support.mozilla.org/en-US/kb/update-firefox-latest-version

Abraham Juliot
Abraham Juliot
47,353 Points

Try something like this...

  border-radius: 10px;

  /* Prevent background color leak outs */
  -webkit-background-clip: padding-box; 
  -moz-background-clip:    padding; 
  background-clip:         padding-box;

I learned this from CSS Tricks and it should work in the latest firefox. Check out the article here: http://css-tricks.com/almanac/properties/b/border-radius/

I hope this helps

barnabasadedoyin
barnabasadedoyin
1,501 Points

Hi Abraham, doesn't change anything because firefox didn't even show the image but chrome does.

barnabasadedoyin
barnabasadedoyin
1,501 Points

Tough I didn't add the period, the problem is now solved.Seems I got and update because the code in .portfolio still remain intact.Thank you Melody