In this, we learn how to show triangle half 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-triangle-half"></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 triangle half 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 triangle half icon</h1>
<p>increase icon size using inline css</p>
<p>
<i class="bi-triangle-half"></i>
<i class="bi-triangle-half" style="font-size:20px"></i>
<i class="bi-triangle-half" style="font-size:30px"></i>
<i class="bi-triangle-half" style="font-size:40px"></i>
<i class="bi-triangle-half" style="font-size:50px"></i>
</p>
<p>change icon color using inline css</p>
<p>
<i class="bi-triangle-half"></i>
<i class="bi-triangle-half" style="color:red"></i>
<i class="bi-triangle-half" style="color:blue"></i>
<i class="bi-triangle-half" style="color:green"></i>
</p>
<p>use icon with html button tag</p>
<p>
<button style="padding: 5px">
<i class="bi-triangle-half"></i> button
</button>
</p>
</body>
</html>
<h1 align="center">with anchor tag</h1>
<a href="javascript:void(0);">
<i class="bi-triangle-half" 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-triangle-half"></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-triangle-half"></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-triangle-half" viewBox="0 0 16 16">
<path d="M8.065 2.016A.13.13 0 0 0 8.002 2v11.983l6.856.017a.12.12 0 0 0 .066-.017.162.162 0 0 0 .054-.06.176.176 0 0 0-.002-.183L8.12 2.073a.146.146 0 0 0-.054-.057zm-1.043-.45a1.13 1.13 0 0 1 1.96 0l6.856 11.667c.458.778-.091 1.767-.98 1.767H1.146c-.889 0-1.437-.99-.98-1.767L7.022 1.566z"/>
</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.