This is a very simple step for someone who knows CSS. All you have to do is to add a style into page about your element which has glyphicon on it.
We will use the euro as a glyph icon and add style into the page as internal.
As you can see below :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>
span.glyphicon-euro{
font-size: 1.9em;
}
</style>
</head>
<body>
<div class="container">
<h2>Euro Glyph</h2>
<p>Euro icon: <span class="glyphicon glyphicon-euro"></span></p>
</div>
</body>
</html>
You can change the font size of the span element whose class name is glyphicon-euro to make bigger glyphicon in bootstrap. Test by increasing and decreasing values of font-size.
Note : There are about 260 glyphs available from http://glyphicons.com/ for those use Bootstrap 3 on their web site. You have already known that glyphicons are not supported by Bootstrap 4 and you need to use the alternative toolset deliverer such awesome font.
Hiç yorum yok:
Yorum Gönder