The annoying red dots in the upper right corner of the CSS Avatar

Source: Internet
Author: User

That's the nasty red dot,

Description

1, mainly used to position positioning;

2, use Border-radius to draw round corner;

Source:

<!DOCTYPE HTML><HTML><Head>    <MetaCharSet= "GBK" />    <title>Test</title>    <style>. Info{background:Rgba (45,171,219,.9);position:relative;/*Set child element relative positioning*/Color: White;text-align:Center;width:40px;Height:40px;-webkit-border-radius:50%;-moz-border-radius:50%;Border-radius:50%;Display:Inline-block;        }. Info:hover{cursor:Pointer;background:Rgba (45,171,219,.6);        }. Info-tip{background:Rgba (250,60,0,1);position:Absolute;/*absolute positioning based on parent element*/width:10px;Height:10px;Top:0;/*at the top of the parent element's interior*/ Right:0;/*to the right of the inside of the parent element*/-webkit-border-radius:50%;-moz-border-radius:50%;Border-radius:50%;        }    </style></Head><Body>        <Divclass= "Info">        <spanclass= "Info-tip"></span>    </Div>    <Divclass= "Info">        <spanclass= "Info-tip"></span>    </Div>    <Divclass= "Info">        <spanclass= "Info-tip"></span>    </Div></Body></HTML>

The annoying red dots in the upper right corner of the CSS Avatar

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.