Make a CSS triangle with transparent background on a div with white bg image?

前端 未结 5 1579
时光说笑
时光说笑 2020-12-10 08:12

Ok so, I\'m trying to replicate the effect you see here at the bottom of the page, with the back to top button: http://www.ppp-templates.de/tilability/ - After the content a

5条回答
  •  轮回少年
    2020-12-10 09:08

    Here's one way to make a triangle with fairly minimal markup and css:

    HTML:

    CSS:

    .triangle {
        width: 0; 
        height: 0; 
        border-left: 35px solid transparent;
        border-right: 35px solid transparent;
        border-bottom: 35px solid gray;
    }
    

    http://jsbin.com/iribib/21

提交回复
热议问题