Saved X
Google login
SignUp with Email
X

Bootstrap shield slash icon

In this, we learn how to show shield slash 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.

shield slash
<i class="bi-shield-slash"></i>
Example

shield slash

increase icon size using inline css

change icon color using inline css

use icon with html button tag

Full Code
<!Doctype html>
<html>
<head>
	<title>Bootstrap shield slash 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 shield slash icon</h1>

	<p>increase icon size using inline css</p>
	<p>
		<i class="bi-shield-slash"></i>
		<i class="bi-shield-slash" style="font-size:20px"></i>
		<i class="bi-shield-slash" style="font-size:30px"></i>
		<i class="bi-shield-slash" style="font-size:40px"></i>
		<i class="bi-shield-slash" style="font-size:50px"></i>
	</p>

	<p>change icon color using inline css</p>
	<p>
		<i class="bi-shield-slash"></i>
		<i class="bi-shield-slash" style="color:red"></i>
		<i class="bi-shield-slash" style="color:blue"></i>
		<i class="bi-shield-slash" style="color:green"></i>
	</p>

	<p>use icon with html button tag</p>
	<p>
		<button style="padding: 5px">
			<i class="bi-shield-slash"></i> button
		</button>
	</p>
</body>
</html>
Icon With Anchor Tag

With Anchor Tag

Link
Code
<h1 align="center">with anchor tag</h1>
<a href="javascript:void(0);">
	<i class="bi-shield-slash" style="font-size:16px"></i> Link
</a>
Icon With Input Tag

With Input Tag

Use this with bootstrap css.

Code
<h1 align="center">with Input tag</h1>
<div class="input-group w-50">
	<span class="input-group-text">
		<i class="bi-shield-slash"></i>
	</span>
	<input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example">
</div>
Icon With Button Tag

With Button Tag

Code
<h1 align="center">with button tag</h1>
<button style="padding: 5px">
	<i class="bi-shield-slash"></i> Button
</button>
Icon Html svg code

Icon Svg code

Code
<h1 align="center">Icon Svg code</h1>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-shield-slash" viewBox="0 0 16 16">
  <path fill-rule="evenodd" d="M1.093 3.093c-.465 4.275.885 7.46 2.513 9.589a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.32 11.32 0 0 0 1.733-1.525l-.745-.745a10.27 10.27 0 0 1-1.578 1.392c-.346.244-.652.42-.893.533-.12.057-.218.095-.293.118a.55.55 0 0 1-.101.025.615.615 0 0 1-.1-.025 2.348 2.348 0 0 1-.294-.118 6.141 6.141 0 0 1-.893-.533 10.725 10.725 0 0 1-2.287-2.233C3.053 10.228 1.879 7.594 2.06 4.06l-.967-.967zM3.98 1.98l-.852-.852A58.935 58.935 0 0 1 5.072.559C6.157.266 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.483 3.626-.332 6.491-1.551 8.616l-.77-.77c1.042-1.915 1.72-4.469 1.29-7.702a.48.48 0 0 0-.33-.39c-.65-.213-1.75-.56-2.836-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524a49.7 49.7 0 0 0-1.357.39zm9.666 12.374-13-13 .708-.708 13 13-.707.707z"/>
</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.

More icons