I have this rule here:
border: 3px 0 0 0 solid #ccc;
Yet, it appears that the 4 sides are of the border are not registering.
border: 3px solid #ccc;
seems to work fine however.
Is there a way to make a one-liner with 4 side widths assigned?
Though, there is no exact shorthand for the border, you can still put the width of the border in the same line;
border-width: 1px 0 1px 0;
border-color: red;
border-style: solid;
Hope it helps.
If I'm not mistaken, this is the closest you can get to one line:
border: solid #000;
border-width: 0 1px 1px 0;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With