Home > Web Front-end > CSS Tutorial > How to hide text box border in css

How to hide text box border in css

王林
Release: 2023-01-06 11:13:16
Original
4221 people have browsed it

The way to hide the text box border in css is to use the border-style attribute, such as [border-style:none;]. If we want to add a border to the text box, we can set [border-style: solid;].

How to hide text box border in css

The operating environment of this article: windows10 system, css 3, thinkpad t480 computer.

In CSS, we can use the border-style attribute to define the style of the border. If we want to cancel the border of the text box, we can set the attribute border-style:none.

Common attribute values:

  • none: Default is no border

  • dotted: Define a dotted border

  • dashed: Define a dashed border

  • solid: Define a solid border

For example:

p.one{
    border-style:none;
}
p.two{
    border-style:solid;
}
Copy after login

Related recommendations: css video tutorial

The above is the detailed content of How to hide text box border in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template