border dimensions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

border dimensions

Why does it give you two ways of making a border, wouldn't it make more sense to put all the specifics in one place: .border1 { padding:10px; border:3px solid #ffee00; } as oppose to: .border2{ padding: 10px; border-style: solid; border-width: 2px; border-color: rgb(0, 153, 0); } ?

10th Nov 2020, 2:03 PM
Grim
1 Answer
+ 3
Some people may find more comfortable using the first way, meanwhile some others prefer the second one. Sololearn just gives you more options.
10th Nov 2020, 9:55 PM
Gabriele Gatti
Gabriele Gatti - avatar