Home > Web Front-end > CSS Tutorial > How to Remove the Outline Border from an Input Button in Chrome?

How to Remove the Outline Border from an Input Button in Chrome?

Susan Sarandon
Release: 2024-11-13 11:20:02
Original
415 people have browsed it

How to Remove the Outline Border from an Input Button in Chrome?

Removing the Outline Border from Input Button

When you click outside the input button, the unsightly border disappears. Despite attempts to eliminate it using onfocus: none, the border persists. This article addresses the issue of removing the border when you click on the button.

In Chrome, using outline: none; can eradicate the border issue.

<style>
input[type=button] {
    width: 120px;
    height: 60px;
    margin-left: 35px;
    display: block;
    background-color: gray;
    color: white;
    border: none;
    outline: none;
}
</style>
Copy after login

The above is the detailed content of How to Remove the Outline Border from an Input Button in Chrome?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template