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

You Bake Me Blush Image Vanishes

After adding grids in the "Working With Grids" lesson and refreshing the browser to verify the changes (7:44) the "You-Bake-Me-Blush.gif" image disappears in the browser! I double checked my code and all seems to be in order (as far as I can tell. I added a duplicate line of code linking to the image and it reappears! However, when I remove the original line, the gif disappears from the browser. The only way I can get the gif to remain is with maintaining both lines of code in the text editor. This seems to be functional, but it bothers me as to what is happening as it seems like a sloppy solution. Any ideas?

Here is my code:

<div class="grid_3"
    <img src="img/you-bake-me-blush.gif" alt="You Bake Me Blush">
        <img src="img/you-bake-me-blush.gif" alt="You Bake Me Blush">
</div>

I'd like to help but your code you're trying to display isn't showing.

Strange. It shows in the box when I try to edit, but it doesn't display when I submit the comment. Perhaps with a new comment:

<div class="grid_3 omega"
    <img src="img/you-bake-me-blush.gif" alt="You Bake Me Blush">
    <img src="img/you-bake-me-blush.gif" alt="You Bake Me Blush">
</div>

Try removing omega from your class name.

Tried it, but didn't make a difference. It actually had me add omega in a later step and the problem occurred prior to me adding it.

Oh ok. You may be a bit further ahead than me. I'm still a noob. Sorry about that.

Not a problem, I am as well. I tried it again for good measure, but no luck. This isn't really holding up my progress, but is just an annoyance. I feel as if I may be just missing something really simple and thought there might be something glaringly obvious to others :)

I understand that. Good luck to you!

Corinne Olson
Corinne Olson
1,991 Points

you are missing a closing bracket on the first div

Corinne Olson
Corinne Olson
1,991 Points

sorry I i did not see that this was already answered :( I thought yippy I actually know an answer to something :)

James Barnett
James Barnett
39,199 Points

Corinne Olson - That's what the green check mark in the thread list shows, a question has a post marked as a 'best answer`.

2 Answers

James Barnett
James Barnett
39,199 Points

J.R. Sedivy - You are missing an angle bracket > on your opening div tag.

Wow! Can't believe I missed that! Guess I need to pay more attention to detail. This wasn't even my question but It was bothering me because I couldn't figure it out.

I really can't believe I missed that! I literally poured over every character of that statement, although I think I was focused a little to much on the image source. Thank you James Barnett, also thanks Grant Maye for working through this with me!

I was just having the same problem, it's amazing how you can read through the code over and over and not see the missing angle bracket. Thanks James Barnett!

John Locke
John Locke
15,479 Points

Try indenting the code four spaces, J.R. The forum uses Markdown, and that's how it identifies code.

That did the trick; thanks John!