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 trialKonrad Pilch
2,435 PointsHow do you do it? CSS Cutting
1 Answer
elk6
22,916 PointsFirst make a regular rectangle and put your content in there. Then, use a ::before or ::after Pseudo element and position it absolute to where you want it. Might have to go into the minus with this. Then use a transform property to make it look like a triangle or similar. In this case, they use the transform property skew.
I recreated it in a very simple pen, here:
http://codepen.io/McSuckelaer/pen/jbxKzV
Take a look.
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsThank you!
elk6
22,916 Pointselk6
22,916 PointsNo probs. :)