Mark glyphicon with color

Description

The following code shows how to mark glyphicon with color.

Example


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc2/css/bootstrap-glyphicons.css">
<style type='text/css'>
.blue {<!--   w ww  . j a  v  a2 s .  co m-->
  color: blue;
}
</style>
</head>
<body>
  <span class="glyphicon glyphicon-search"></span>
  <span class="glyphicon glyphicon-user blue"></span>
  <span class="glyphicon glyphicon-trash"></span>
</body>
</html>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well