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
Susan SarandonOriginal
2024-11-13 11:20:02429browse

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>

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!

Statement:
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