Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
probably a stupid question
Why do we need to add curly brackets {} when using border-style?
2 Réponses
+ 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.
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;}