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 CSS Clipping Paths

Ratnadeep Debnath
Ratnadeep Debnath
264 Points

Hi Sir, I didn't understand how the clipping path is working, can you help me to understand clearly

I am confused with the background and the clipping path, please if possible with a real life example I will be helpful

Simon Abrams
Simon Abrams
8,807 Points

Conceptually, think of the clip-path as a little window only allows a certain portion of an image (or text, in this case) to show through. Using the clip-path generators that the instructor demonstrated, you can create those 'windows' using very simple, or very complex shapes, and use the resulting code in your css.

The best way to understand is to go to the generator tools that are provided in the lesson and play around with them - it should become clear then!

Ratnadeep Debnath
Ratnadeep Debnath
264 Points

Hi Simon,

Thanks for your reply. I just visualized the way you were trying to say and did 2 3 examples for better understanding. Now its fine for me, thank you.