Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

write border in shorthand !

i am using border on object. like

.box{
    border-left:solid 1px #000;
    border-right:solid 1px #000;
    border-bottom:solid 1px #000;
    width:50px;
    height:50px;
}

may i write this in shorthand?

like image 689
Kali Charan Rajput Avatar asked Feb 26 '23 22:02

Kali Charan Rajput


1 Answers

This saves only one line:

border: 1px solid #000;
border-top: 0;
like image 69
BalusC Avatar answered Mar 04 '23 00:03

BalusC