Saved X
Google login
SignUp with Email

Bootstrap stoplights icon

In this, we learn how to show stoplights 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-stoplights"></i>


increase icon size using inline css

change icon color using inline css

use icon with html button tag

Full Code
<!Doctype html>
	<title>Bootstrap stoplights icon</title>
	<link rel="stylesheet" href="">
	<h1 align="center">Bootstrap stoplights icon</h1>

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

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

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

With Anchor Tag

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

With Input Tag

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-stoplights"></i>
	<input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example">
Icon With Button Tag

With Button Tag

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

Icon Svg code

<h1 align="center">Icon Svg code</h1>
<svg xmlns="" width="16" height="16" fill="currentColor" class="bi bi-stoplights" viewBox="0 0 16 16">
  <path d="M8 5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 4a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm1.5 2.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/>
  <path d="M4 2a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2h2c-.167.5-.8 1.6-2 2v2h2c-.167.5-.8 1.6-2 2v2h2c-.167.5-.8 1.6-2 2v1a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1c-1.2-.4-1.833-1.5-2-2h2V8c-1.2-.4-1.833-1.5-2-2h2V4c-1.2-.4-1.833-1.5-2-2h2zm2-1a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6z"/>

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