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 trialDan Neumann
Courses Plus Student 10,318 PointsCSS Transitions not working on my site
I'm trying to add a transition to my site (http://dlchurchwebsites.com/samples/sbcauburn/) and have added the following code and it doesn't work. The children's Ministry button on the left, half way down the page is made up of 2 images. The main image with the children and the rectangle that says "Children's Ministry". I want the rectangle to move up like this site's buttons (http://www.northridgerochester.com/) when I hover. Here is the code I added:
.child-ministry-rec {
position: relative;
bottom: 60px;
transition-duration: 1s;
}
.child-ministry-pic:hover img .child-ministry-rec {
bottom: 90px;
}
Any help would be appreciated.
1 Answer
Dan Neumann
Courses Plus Student 10,318 PointsI figured it out. "child-ministry-pic" didn't contain "child-ministry-rec".