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


Dan Curtis
Dan Curtis
19,889 Points

Image Cut Out / Over Laping DIV?

Hi All,

Sorry to be really vague but I am trying to figure out how people create this little triangle piece of an image remaining white the rest is not there.

I know this doesn't really make sense but for instance you can see it on the bottom of the hero section of www.tribalmedia.co.uk

can someone please suggest a way to gain this effect.

Thanks in advance

3 Answers

Neville Barrett
Neville Barrett
6,141 Points

Hi Dan,

I think you're talking about separator styles for horizontally dividing sections on a website. The dividers are created using several techniques, including styling pseudo-elements, using gradients and inserting SVG graphics with responsiveness in mind.

You'll find a great article on separator styles here: http://tympanus.net/codrops/2013/10/03/a-collection-of-separator-styles/

I hope this helps

I think that is a Photoshop work. Inspecting the page elements you can see that the triangle is part of the image and have not seen any style acording to that. But maybe I am wrong.

James Barnett
James Barnett
39,199 Points

I think you can just create a transparent png mask over the top of the image.

Something like this: http://jsfiddle.net/39VG9/1/