How to change the Bootstrap default input focus glow style
This article focuses on "how to change the Bootstrap default input focus glow style", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to change the Bootstrap default input focus glow style.
Answer: use the CSSbox-shadow attribute
By default, when you get focus in Bootstrap, all text elements and their class. form-control highlighted in blue glow.
However, you can modify this default focus glow or shadow style by simply setting the CSSborder-color and box-shadow properties. Let's try an example to see how it actually works:
Code:
Override Bootstrap Input Focus Styles
. form-control:focus {
Border-color: # ff80ff
Box-shadow: 0px 1px 1px rgba (0,0,0,0.5) inset, 0px 0px 8px rgba (255,100,255,0.5)
}
Name
Address
Country
Select
India
USA
UK
Agree with Terms and Conditions
Send
At this point, I believe you have a deeper understanding of "how to change the Bootstrap default input focus glow style". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!