Skip to content Skip to sidebar Skip to footer

Css3 - Box With Notification Bubble

How can i make box with image-less notification bubble like this one for example as you can see this is box and image in center of it and image can be changed to another image on

Solution 1:

Try this:

CSS:

.outer{
    width: 100px;
    height: 100px;
    border: 1px solid black;
    background: url(http://us.123rf.com/400wm/400/400/prolific/prolific1206/prolific120600020/14161811-pencil--edit--icon.jpg);
    background-size: 100px100px;
}

.num_notifs {
    border-radius: 5px;
    width: 50%;
    margin-left: 25%;
    margin-top: 2px;
    background: #00b7ea; /* Old browsers */background: -moz-linear-gradient(top,  #00b7ea0%, #0052bf100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#0052bf)); /* Chrome,Safari4+ */background: -webkit-linear-gradient(top,  #00b7ea0%,#0052bf100%); /* Chrome10+,Safari5.1+ */background: -o-linear-gradient(top,  #00b7ea0%,#0052bf100%); /* Opera 11.10+ */background: -ms-linear-gradient(top,  #00b7ea0%,#0052bf100%); /* IE10+ */background: linear-gradient(to bottom,  #00b7ea0%,#0052bf100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#0052bf',GradientType=0 ); /* IE6-9 */text-align: center;
}

HTML:

<divclass="outer"><divclass="num_notifs">
        4329
    </div></div>

Fiddle.

Post a Comment for "Css3 - Box With Notification Bubble"