I am trying to add a notification icon to my website similar to Facebook. On Facebook, the notification icon is displayed in the top left corner with a number indicating the total notifications. I would like to replicate this feature on my site as well. Below is the code that I have written for this purpose:
<style>
.icon {
width:30px;
height:30px;
}
.txt {
padding:-10px 0 0 10px;
background:red;
font-size:xx-small;
}
</style>
<div class="icon">
<img src="icon.bmp" alt="none" width="100%" height="100%" />
<div class="txt">10</div>
</div>
Unfortunately, the desired effect is not being achieved. Can anyone offer assistance on how to properly implement this feature to match the style of Facebook? Thank you.