Saved X
Google login
SignUp with Email
X

Bootstrap stack icon

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

stack
<i class="bi-stack"></i>
Example

stack

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 stack 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 stack icon</h1>

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

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

	<p>use icon with html button tag</p>
	<p>
		<button style="padding: 5px">
			<i class="bi-stack"></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-stack" 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-stack"></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-stack"></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-stack" viewBox="0 0 16 16">
  <path d="m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"/>
  <path d="m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z"/>
</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