Can we shorten :
border-top:1px solid black;
border-left:2px solid red;
border-bottom:3px solid green;
border-right:4px solid blue;
To something similar to :
border:1px solid black 2px solid red 3px solid green 4px solid blue;
N.B: I know already this way:
border-width:1px 2px 3px 4px;
border-style:solid;
border-color:black red green blue;
Nope, you can’t make it any shorter than the examples you’ve provided.
From the docs
Thanks @Rocket
If you are using a preprocessor (like SCSS), you could try and use a mixin, but I hardly believe that’s what you want:
Which outputs: