CSS border-width property
The border-width property in css allows us to set the border width of an element (div,span etc.).
Example : set 15px width to the border
div{border-width:15px}
Try it Yourself »
Css border-width property can have from one to four values.
Syntax - four values.
div{border-width:5px 10px 15px 20px}
Try it Yourself »
- Top border is 5px.
- Right border is 10px.
- Bottom border is 15px.
- Left border is 20px.
Css Syntax
border-width:medium | thin | thick | 15px | 1em;
In CSS, there are four seperate properties to style an element's border. They are :
.new-div{
border-top-width: 10px;
border-bottom-width: 5px;
border-left-width: 25px;
border-right-width: 45px;
}
Try it Yourself »
save
listen
AI Answer
CSS border-width property
0
The border-width property in css allows us to set the border width of an element (div,spa…
asked
Apu
0 answers
2915
The border-width property in css allows us to set the border width of an element (div,spa…
Answer Link
answered
Apu