CSS3 implementation triangle, chat background bubbles, heart shape and other shapes

Source: Internet
Author: User

1, chat background bubbles:

The CSS code is as follows:

#talkbubble{width:120px;margin:Auto;background:Red;position:relative;-moz-border-radius:10px;-webkit-border-radius:10px;Border-radius:10px; }#talkbubble: Before{content:"";position:Absolute; Right:100%;Top:26px;width:0;Height:0;Border-top:13px Solid Transparent;Border-right:26px Solid Red;Border-bottom:13px Solid Transparent; }

2. Heart Shape:

The CSS code is as follows:

3, Positive triangle:

The CSS code is as follows:

#triangle-up {width:0; height:0; border-left:50px solid transparent; border-right:50px solid transparent; Border-bott om:100px solid red; }

4, Inverted triangle:

The CSS code is as follows:

#triangle-down {width:0; height:0; border-left:50px solid transparent; border-right:50px solid transparent; border-to p:100px solid red; }

  

CSS3 implementation triangle, chat background bubbles, heart shape and other shapes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.