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

Eric Nevitt
Eric Nevitt
4,914 Points

Image captions

I am having trouble with this tutorial http://www.hongkiat.com/blog/css3-image-captions/ . I am working on caption one. What is my code missing?

.project .box img { position:absolute; left:0; -webkit-transition: all 300ms ease-ou; -moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
} .project .box .caption { background-color: rgba(0,0,0,0.8); position: absolute;
color: #fff;
z-index: 100;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
-o-transition: all 300ms ease-out;
-ms-transition: all 300ms ease-out;
transition: all 300ms ease-out;
left: 0;
} .project .box .simple-caption { height:30px; width:100%; display:block; line-height:1em; text-align:center; }

.project .box:hover .simple-caption{ -moz-transform: translateY(-100%);
-o-transform: translateY(-100%);
-webkit-transform: translateY(-100%); transform: translateY(-100%);
}

<div class="project box"><a href="http://dnapllc.com/"><img src="images/dittrich.jpg"> <span class="caption simple-caption">
<p>Simple Caption</p>
</span>
</a></div>

5 Answers

Blake Lieberman
Blake Lieberman
23,772 Points

Make a JSFiddle that would make it easier. Then send me a link to it.

Blake Lieberman
Blake Lieberman
23,772 Points

Eric, can you do it on your own. Then I can review it. I wasn't prepared to paired programming.

Eric Nevitt
Eric Nevitt
4,914 Points

This is another option I'm working on. http://jsfiddle.net/nevitt99/ztqdke61/ What I want it to do is when you mouse over the picture have the name of the site and have it go to the site. The title shouldn't be visible until you mouse over it. Right now when the title space shows up. I'd to have it over the image not under it.

Blake Lieberman
Blake Lieberman
23,772 Points

What's your google hangout info?

Eric Nevitt
Eric Nevitt
4,914 Points

Don't have googlehang out.