In this, we learn how to show type strikethrough 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-strikethrough"></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 strikethrough 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 strikethrough icon</h1>
<p>increase icon size using inline css</p>
<p>
<i class="bi-type-strikethrough"></i>
<i class="bi-type-strikethrough" style="font-size:20px"></i>
<i class="bi-type-strikethrough" style="font-size:30px"></i>
<i class="bi-type-strikethrough" style="font-size:40px"></i>
<i class="bi-type-strikethrough" style="font-size:50px"></i>
</p>
<p>change icon color using inline css</p>
<p>
<i class="bi-type-strikethrough"></i>
<i class="bi-type-strikethrough" style="color:red"></i>
<i class="bi-type-strikethrough" style="color:blue"></i>
<i class="bi-type-strikethrough" style="color:green"></i>
</p>
<p>use icon with html button tag</p>
<p>
<button style="padding: 5px">
<i class="bi-type-strikethrough"></i> button
</button>
</p>
</body>
</html>
<h1 align="center">with anchor tag</h1>
<a href="javascript:void(0);">
<i class="bi-type-strikethrough" 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-strikethrough"></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-strikethrough"></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-strikethrough" viewBox="0 0 16 16">
<path d="M6.333 5.686c0 .31.083.581.27.814H5.166a2.776 2.776 0 0 1-.099-.76c0-1.627 1.436-2.768 3.48-2.768 1.969 0 3.39 1.175 3.445 2.85h-1.23c-.11-1.08-.964-1.743-2.25-1.743-1.23 0-2.18.602-2.18 1.607zm2.194 7.478c-2.153 0-3.589-1.107-3.705-2.81h1.23c.144 1.06 1.129 1.703 2.544 1.703 1.34 0 2.31-.705 2.31-1.675 0-.827-.547-1.374-1.914-1.675L8.046 8.5H1v-1h14v1h-3.504c.468.437.675.994.675 1.697 0 1.826-1.436 2.967-3.644 2.967z"/>
</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.