This page shows you how to define the border of a box
You may see the outline:
h1 {
border: 1px solid aqua;
}
where:
<h1>My First Header with a border</h1>
Can be applied to an image.
.coloredBorderBox {
width: 20px;
height: 20px;
border-left: 4px solid aqua;
border-right: 4px solid red;
border-bottom: 4px solid black;
border-top: 4px solid blue;
}
<p class="coloredBorderBox "></p>
.roundedBorderBox {
width: 40px;
height: 40px;
border: 2px solid blue;
border-radius: 10px;
}
<p class="roundedBorderBox"></p>