Forms are often the primary point of interaction between users and your website. Custom styling with CSS can make your forms much more enjoyable and easier to use.
Test the input fields below to see the custom :focus state:
border-color on focus.input[type=text] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
}
input[type=text]:focus {
border-color: #2e7d52;
outline: none;
}