I'm attempting to create a button with a notification feature that mimics the style of Facebook notifications. I want a small red circle in the top right corner, showing a numerical value.
However, I'm running into some difficulties. I can't seem to position the circle correctly or get the number to display inside it.
This is what my button currently looks like:
<button class="btn btn-blue" id="noteBtn">Notes <span class="notification">1</span></button>
And here is the CSS code I've been using:
.notification:before {
content: ' \25CF';
font-size: 5em;
color:red;
}
I was working on this JS Fiddle: