I don't think you can control it the way I mentioned, but for sure you can control the individual color of each border:
#myElement{
border-style: solid;
border-width: 1px;
border-top-color: black;
border-left-color: black;
border-right-color: white;
border-bottom-color: white;
}