Categories
CSS

How to remove the border highlight on an input text element with CSS?

Spread the love

To remove the border highlight on an input text element with CSS, we set the outline property.

For instance, we write

input {
  outline: none;
}

to set outline to none on the input elements to remove their border.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *