Bootstrap shield fill x icon

In this, we learn how to show shield fill x 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 fill x
<i class="bi-shield-fill-x"></i>
Example

shield fill x

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 fill x 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 fill x icon</h1>

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

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

	<p>use icon with html button tag</p>
	<p>
		<button style="padding: 5px">
			<i class="bi-shield-fill-x"></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-fill-x" 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-fill-x"></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-fill-x"></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-fill-x" viewBox="0 0 16 16">
  <path d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.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.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zM6.854 5.146 8 6.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 7l1.147 1.146a.5.5 0 0 1-.708.708L8 7.707 6.854 8.854a.5.5 0 1 1-.708-.708L7.293 7 6.146 5.854a.5.5 0 1 1 .708-.708z"/>
</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

×
Google login
SignUp with Email
X