Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
140
rated 0 times [  146] [ 6]  / answers: 1 / hits: 30341  / 11 Years ago, tue, august 27, 2013, 12:00:00

I am not familiar with the exact term and keyword to search and Iam just begining to design. So I would like to ask if the term alert indicator is correct.



And how do I be able to do it on Twitter Bootstrap?



below is the image of the indicator i would like to accomplish.
Thanks..



enter


More From » html

 Answers
61

Take a look at Bootstrap's Badges: http://getbootstrap.com/components/#badges



Make a class that specifies a container for a glyphicon and badge and places the badge at a fixed offset from the icon. Something like this:



<div class=notification-icon>
<span class=glyphicon glyphicon-envelope></span>
<span class=badge>19</span>
</div>


With CSS like this:



.notification-icon .glyphicon {
...
}

.notification-icon .badge {
...
}


You should easily be able to set it up so that the badge only shows when you have a nonzero number of notifications.


[#76092] Monday, August 26, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tomas

Total Points: 165
Total Questions: 111
Total Answers: 103

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
tomas questions
Thu, Jan 27, 22, 00:00, 2 Years ago
Mon, May 10, 21, 00:00, 3 Years ago
Tue, Jan 5, 21, 00:00, 3 Years ago
;