Home  >  Article  >  Web Front-end  >  How to hide border in css

How to hide border in css

藏色散人
藏色散人Original
2021-09-13 14:01:034235browse

How to hide the border in css: 1. Remove the border border through "border:none;"; 2. Hide the border border through "border:hidden"; 3. Remove the input click border through "outline:none".

How to hide border in css

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

How to hide the border in css?

Hide or remove the border

When laying out the page, the border is our most important One of the commonly used attributes

We can check the position and size of elements through the borders

But sometimes we don’t want to see these borders, the default borders of some elements, such as input tags, etc.

We can choose to hide or remove

To remove the border, use

border:none;

Hide the border: border:hidden, but it will take up space and needs to be processed during layout

Remove the input click border:

outline:none

border attribute introduction:

border shorthand attribute sets all border attributes in one statement.

You can set the following properties in order:

border-width
border-style
border-color

If you don’t set one of the values, there will be no problem. For example, border:solid #ff0000; is also allowed.

Recommended learning: "css video tutorial"

The above is the detailed content of How to hide border in css. 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