PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, September 30, 2022

[FIXED] How to add a Glyphicon to the place holder in a search bar, HTML, Bootstrap 5?

 September 30, 2022     bootstrap-5, css, html     No comments   

Issue

This is a screen shot from my website

I want to add a search Glyphicon to that search bar how do I using bootstrap 5.


Solution

add bootstrap.icons.css file to html page

cdn address : https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.3/font/bootstrap-icons.css

document : https://icons.getbootstrap.com/

using this code :

<div class="input-group mb-3">
    <button class="btn btn-outline-secondary" type="button"><i class="bi bi-search"></i></button>
    <input type="text" class="form-control" placeholder="Enter A Product ...">
  </div>


Answered By - Amin.Gh
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing