This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 3 years, 3 months ago.

Border color of inputs


  • Thomás Henrique
    Participant

    Posts: 7
    Member Reply #1189

    Hi!

    How can I change border color of input text and other controls on :focus?

    Thanks!

     

    Sean
    Sean
    Keymaster

    Posts: 4526
    Support Staff Reply #1227

    Hi :),

    Just apply your own class “my-input” and add it to form control:

    <input class=”form-control my-input” type=”text” placeholder=”Type a message here…”>

    And define your class in custom.css:

    .my-input:focus {
    border-color: red !important;
    }

    That should be it!

    Thanks.

You must be logged in to reply to this topic.