Asked • 05/22/19

How would one create a triangle container for an image (x-browser)?

How would I create a DIV containing an IMG where the DIV cuts the image into a triangle, thereby displaying only part of the image though a triangle. So... ``` <div> <img src="some_image" /> </div> ``` Where the image is a square, but the DIV containing the image is a triangle.

1 Expert Answer

By:

Laura R. answered • 05/22/19

Tutor
5 (21)

Career Transition to Full Stack Engineer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.