Home >Web Front-end >CSS Tutorial >How to remove the left border in css

How to remove the left border in css

青灯夜游
青灯夜游Original
2021-07-01 16:15:254653browse

In CSS, you can use the border-left-style attribute to remove the left border. This attribute can set the left border style of the element; you only need to set "border-left-style:none;" to the specified border element. style to remove the left border.

How to remove the left border in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

In css, you can use the border-left-style attribute to remove the left border.

border-left-style Sets the style of the left border of the element. When the attribute value is set to "none", a borderless style can be defined, that is, the existing left border is removed.

Let’s take a look at the code examples below.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<style>
p 
{
    border-style:solid;
}
p.none {border-left-style:none;}

</style>
</head>
<body>
<p class="none">去除左边框</p>

</body>
</html>

Rendering:

How to remove the left border in css

(Learning video sharing: css video tutorial)

The above is the detailed content of How to remove the left 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