I want to create a div with a triangle at the bottom . But I need a background image on a triangle , I tried using a pseudo-element ( :after ), but it does not work.
#homebg:after{ content:''; position: absolute; top: 100%; left: 0; right: 0; margin: 0 auto; width: 0; height: 0; border-top: solid 50px #fff; border-left: solid 48vw transparent; border-right: solid 48vw transparent; }
I need the div appear as in this image with background in the triangle: 
html css css3 css-shapes svg
adeade
source share