You can use:
border-width: 2px 10px 4px 20px;
border-style: solid;
caption:
border-width: (top border) (right border) (bottom border) (left border)
Example:
<div style="height: 100px; width: 100px; background: red; border-width: 2px 10px 4px 20px; border-style: solid;">
texto
</div>
Source:
https://www.w3schools.com/css/tryit.asp?filename=trycss_border-width
Edit
Edge only on the right and top of the div with 20px height and width
.div {
position:relative;
width:150px;
height:200px;
background: lightgray;
}
.div:before,
.div:after,
.div>:first-child:before,
.div>:first-child:after {
position:absolute;
width:20px; height:20px;
border-color:blue;
border-style:solid;
content: ' ';
}
.div:before {top:0;left:0;border-width: 0px 0 0 0px}
.div:after {top:0;right:0;border-width: 4px 4px 0 0}
.div>:first-child:before {bottom:0;right:0;border-width: 0 4px 4px 0}
.div>:first-child:after {bottom:0;left:0;border-width: 0 0 4px 4px}
<div class="div">
</div>
That’s not quite what I’m thinking.Look at this link ! has an image that I can show as an example.I want it to only have a border in the circular area of red.https://www.google.com/search? q=edge+top+right=lnms&tbm=isch&sa=X&ved=0ahUKEwjuzp7I9KjXAhWK5iYKHRBCAtkQ_AUICigB&biw=1366&bih=659#imgrc=Kmdvb6cg3fec3m:
– thiago
Only in the corner of the div?
– LSA
yes!!!!!!!!!!!!!
– thiago
Now check..
– LSA
That!! Exactly thank you !!! Had searched enough !!
– thiago