CSS - border-bottom
border-bottom
The bottom border of an element
shorthand order: border-width border-style border-color
Property Variable Name
border-bottom
Available Values for border-bottom
10px solid #F00|initial|inherit
Examples Using border-bottom values
Example using border-bottom 10px solid #F00
Example using border-bottom 10px solid #F00
Here is an example using border-bottom:10px solid #F00;
Code
<style>
/* Some Styles so we can see the element */
.demo-box-1 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
}
.demo-box-1 {
/* this is the test property */
border-bottom:10px solid #F00;
}
</style>
<h2>Example using border-bottom 10px solid #F00</h2>
<p>Here is an example using <code>border-bottom:10px solid #F00;</code></p>
<div class='demo-box-1'>
</div>
Example using border-bottom initial
Example using border-bottom initial
Here is an example using border-bottom:initial;
Code
<style>
/* Some Styles so we can see the element */
.demo-box-2 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
}
.demo-box-2 {
/* this is the test property */
border-bottom:initial;
}
</style>
<h2>Example using border-bottom initial</h2>
<p>Here is an example using <code>border-bottom:initial;</code></p>
<div class='demo-box-2'>
</div>
Example using border-bottom inherit
Example using border-bottom inherit
Here is an example using border-bottom:inherit;
Code
<style>
/* Some Styles so we can see the element */
.demo-box-3 {
background:#999;
margin-bottom:10px;
height:220px;
width:100%;
display: flex;
flex-wrap: wrap;
color:#FFF;
align-items: center;
justify-content: center;
}
.demo-box-3 {
/* this is the test property */
border-bottom:inherit;
}
</style>
<h2>Example using border-bottom inherit</h2>
<p>Here is an example using <code>border-bottom:inherit;</code></p>
<div class='demo-box-3'>
</div>