Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Override Bootstrap Input Focus Styles</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> <style> .bs-example { margin: 20px; } .form-control:focus { border-color: #ff80ff; box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(255, 100, 255, 0.5); } </style> </head> <body> <div class="bs-example"> <form> <div class="form-group"> <label>Name</label> <input type="text" class="form-control" placeholder="Full Name"> </div> <div class="form-group"> <label>Address</label> <textarea class="form-control" rows="4" placeholder="Mailing Address"></textarea> </div> <div class="form-group"> <label>Country</label> <select class="form-control"> <option>Select</option> <option>India</option> <option>USA</option> <option>UK</option> </select> </div> <div class="form-group"> <label class="form-check-label"><input type="checkbox"> Agree with Terms and Conditions</label> </div> <button type="submit" class="btn btn-primary">Send</button> </form> </div> </body> </html>