Can we pull all the properties of border in single code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we pull all the properties of border in single code?

1st Apr 2016, 8:34 AM
Akas Chitrakar (SkYaRtiSt)
Akas Chitrakar (SkYaRtiSt) - avatar
4 Answers
+ 4
Yes, you can use the border property for the following individual border properties:border-width, border-style (required), border-color. For example: border: 7px solid green;
27th Apr 2016, 1:25 PM
James Flanders
0
yes, you only need to be specific in the code arguments
26th Jun 2016, 1:34 AM
Juan Camilo Arroyave Rico
Juan Camilo Arroyave Rico - avatar
0
.class{border: width style color;}
27th Jun 2016, 9:34 PM
Matheus Prado
Matheus Prado - avatar
0
Generalise all that you want to have a same border by giving them a same class name then call it up in your css and assign all your border property values at once and it Will affect all of them throughout the whole page.
3rd Jul 2016, 5:15 PM
Cele Prince
Cele Prince - avatar