+ 1

how to short css code

how to short this like excel a1:a5 have any option/trick? Please note, I was asking for my confirmation, and I have also used id for JavaScript. Therefore, I will not use class instead of id. #o1, #o2, #o3, #o4, #o5, #o6, #o7, #o8, #o9, #o10 { display: block; margin: 5px; }

11th Oct 2020, 8:05 AM
ASP
ASP - avatar
2 ответов
+ 3
Hi give them a one class #0all { display: block; margin: 5px; } And don't forget the dry // don't repeat yourself
11th Oct 2020, 8:10 AM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar
0
Yes ☑️ #05
11th Oct 2020, 9:07 AM
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗>
</𝚜𝚌𝚘𝚛𝚙𝚒𝚘𝚗> - avatar