Change Default Input Focus Style - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Form Control


Change Default Input Focus Style

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
  <title>Override Bootstrap Input Focus Styles</title> 
  <link rel="stylesheet" href=""> 
  <style type="text/css">
    .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);
    }<!--  www  .  java2s .com-->
    <div class="form-group"> 
     <input type="text" class="form-control" placeholder="Full Name"> 
    <div class="form-group"> 
     <label>Address</label> &lt;textarea class="form-control" rows="4" placeholder="Mailing Address"&gt;&lt;/textarea&gt; 
    <div class="form-group"> 
     <select class="form-control"> <option>Select</option> <option>India</option> <option>USA</option> <option>UK</option> </select> 
    <div class="checkbox"> 
     <label><input type="checkbox"> Agree with Terms and Conditions</label> 
    <button type="submit" class="btn btn-primary">Send</button> 

Related Tutorials