You can set the border on each side using border-top, border-bottom, border-right, border-left attributes.
Example of Code
<style>
.Set-border-top-side {
border-top-width: 4px;
padding: 20px;
}
.Set-border-bottom-side{
border-bottom-width: 4px;
padding: 20px;
}
.Set-border-right-side{
border-right-width: 4px;
padding: 20px;
}
.Set-border-right-side{
border-left-width: 4px;
padding: 20px;
}
</style>
<div class="Set-border-top-side">
This 'div' has a top border.
</div>
<div class="Set-border-bottom-side">
This 'div' has a bottom border.
</div>
<div class="Set-border-left-side">
This 'div' has a left border.
</div>
<div class="Set-border-right-side">
This 'div' has a right border.
</div>
Output
This 'div' has a top border. This 'div' has a bottom border. This 'div' has a left border. This 'div' has a right border.