EN
CSS - remove border from element
0 points
In this article, we would like to show you how to remove border from an element in CSS.
Quick solution:
xxxxxxxxxx
1
div {
2
border: none;
3
}
or using inline style:
xxxxxxxxxx
1
<div style="border: none;"></div>
Preview:

In this example, we disable an element's border by overriding it with an inline style, setting the border to none
.
xxxxxxxxxx
1
2
<html>
3
<head>
4
<style>
5
6
div {
7
height: 100px;
8
width: 100px;
9
background: yellow;
10
border: 1px solid red; /* <--- border to remove */
11
}
12
13
</style>
14
</head>
15
<body>
16
<div style="border: none;"></div>
17
</body>
18
</html>