In this, we learn how to show type icon in bootstrap, How do i increase its size and change color.
Use this icon with a tag.
Use this icon with input tag.
Use this icon with button tag.
Use this icon as svg.
<i class="bi-type"></i>
increase icon size using inline css
change icon color using inline css
use icon with html button tag
<!Doctype html>
<html>
<head>
<title>Bootstrap type icon</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
</head>
<body>
<h1 align="center">Bootstrap type icon</h1>
<p>increase icon size using inline css</p>
<p>
<i class="bi-type"></i>
<i class="bi-type" style="font-size:20px"></i>
<i class="bi-type" style="font-size:30px"></i>
<i class="bi-type" style="font-size:40px"></i>
<i class="bi-type" style="font-size:50px"></i>
</p>
<p>change icon color using inline css</p>
<p>
<i class="bi-type"></i>
<i class="bi-type" style="color:red"></i>
<i class="bi-type" style="color:blue"></i>
<i class="bi-type" style="color:green"></i>
</p>
<p>use icon with html button tag</p>
<p>
<button style="padding: 5px">
<i class="bi-type"></i> button
</button>
</p>
</body>
</html>
<h1 align="center">with anchor tag</h1>
<a href="javascript:void(0);">
<i class="bi-type" style="font-size:16px"></i> Link
</a>
Use this with bootstrap css.
<h1 align="center">with Input tag</h1>
<div class="input-group w-50">
<span class="input-group-text">
<i class="bi-type"></i>
</span>
<input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example">
</div>
<h1 align="center">with button tag</h1>
<button style="padding: 5px">
<i class="bi-type"></i> Button
</button>
<h1 align="center">Icon Svg code</h1>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type" viewBox="0 0 16 16">
<path d="m2.244 13.081.943-2.803H6.66l.944 2.803H8.86L5.54 3.75H4.322L1 13.081h1.244zm2.7-7.923L6.34 9.314H3.51l1.4-4.156h.034zm9.146 7.027h.035v.896h1.128V8.125c0-1.51-1.114-2.345-2.646-2.345-1.736 0-2.59.916-2.666 2.174h1.108c.068-.718.595-1.19 1.517-1.19.971 0 1.518.52 1.518 1.464v.731H12.19c-1.647.007-2.522.8-2.522 2.058 0 1.319.957 2.18 2.345 2.18 1.06 0 1.716-.43 2.078-1.011zm-1.763.035c-.752 0-1.456-.397-1.456-1.244 0-.65.424-1.115 1.408-1.115h1.805v.834c0 .896-.752 1.525-1.757 1.525z"/>
</svg>
Note :- You can use Bootstrap icons with i and span tag.
Note:- Use this icon with or without Bootstrap.
Download the svg of this icon and add in your document.