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

probably a stupid question

Why do we need to add curly brackets {} when using border-style?

30th Jul 2017, 8:35 PM
Okami
Okami - avatar
2 Answers
+ 1
They are like the opening and closing arrows for html tags. They "close" statements so that they don't get confused with other CSS statements.
30th Jul 2017, 9:43 PM
Sarah
Sarah - avatar
0
I think you did a little bit missunderstand the lesson. The curly brackets around the border-style property are nothing special; it's just the same syntax as anywhere in css: selector {property: value;}
30th Jul 2017, 10:45 PM
Amarie