Reputation: 575
For example, I have a rectangle:
<div id="rec">
</div>
CSS:
#rec {
width: 100px;
height: 100px;
background: black;
border: solid;
border-width: 3px;
border-color: red;
}
JSFIDDLE: https://jsfiddle.net/tquq01hq/
I want to do divide the border to 4 equal parts and each part will be in a different color. Any suggestions how to do it?
Upvotes: 2
Views: 496