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

HTML How to Make a Website Adding Pages to a Website Build the Contact Page

Display:block; bugg?

Hello im fairly new to webdevelopment so this might be a dumb question, however i still would like some clarification. Whenever i open this project with the latest version of firefox(29.0.1), the profile image that's added just under the <section>. disappears from the browser completly, i even tried changing computer and uninstalling all addons. The problems still remains, However. Google chrome and IE doesn't seem to have that problem. However if i use the markup, (excluding the paragraph element)

       <p> <span id="picspan"><img src="img/profile.jpg" alt="photograph of Me" class="profile"></span> </p> 

and the css code,

picspan {

display: block;
max-width: 150px;
margin: 0 auto 30px;

}

.profile { border-radius: 100%; }

the image will be shown as in the video. However, i still quite don't understand why... 1, why won't the border-radius work inside the #picspan id? 2, why does display:block; whenever used without span(inside firefox 29.0.1) make the whole image dissapear? 3, What diffrence does the <span> element do to make the picture actually show? 4, is there any other practice i should use to solve this?

2 Answers

When i need help with such things, to make sure i have not made a coding error, after trying to work it out i rely on the w3validator. Google it and put in the code.

I did try that aswell, and there was no shown error to be the cause of that. The problem occurs even if i simply use the downloaded content from the project files without even editing it.