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 HTML Basics Images, Text and Links Captioning Images

Armando Galan-Cedeño
Armando Galan-Cedeño
2,344 Points

Browser not applying space around the fig element. Anything I am doing wrong?

Guil mentions that when using the fig element by default the browser will apply space around the content but when I do it the image stays the same and is not indented. Am I doing something wrong? Does it have to be indented or it does not make a difference?

Armando Galan-Cedeño
Armando Galan-Cedeño
2,344 Points

<section> <h2>About this site</h2> <p>This is a new section about VR</p>

<fig> <img src="img/vr-space.jpg" alt="User experiencing space in VR"> <figcaption>Virtual reality users can explore faraway places and feel as though they are right in the middle of the action. <fidcaption> <fig> <section>

Hey Aakash Srivastav, after going through my code I finally noticed my mistake and that is that I coded the <figure> element as <fig>. After I fixed it the vr-space.jpg image was just fine and indented. Thanks for taking the time to reply man.

Armando Galan-Cedeño
Armando Galan-Cedeño
2,344 Points

The way I posted my code in my last post came out awkward but once again i found my mistake, thanks again.