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

Sarika Rani
Sarika Rani
11,214 Points

Unable to see "photo-desc" if i set "backface-visibility" property.

Hello,

I am unable to see the photo description on hover .... here is my code :

.content { perspective: 700px;

}

.photo {

transition: transform 1s ease-out;
transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;

}

.photo:hover { transform: rotateY(-180deg); -webkit-transform: rotateY(-180deg); }

.side-a { backface-visibility: hidden; }

1 Answer

Steven Parker
Steven Parker
231,261 Points

The HTML code is missing, but if the description is on the "back", I would expect to see a "side-b" rule also, and some positioning to locate both sides in the same place.

A good way to share a multi-part project is to make a snapshot of your workspace and post the link to it here.

Sarika Rani
Sarika Rani
11,214 Points

ahhh k thank you ..... i m new here so i really dont knw how to post the code ..... but i will in mind fr next time .... i tried againa nd its working now ..... thank you for your reply ..