Button color | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Button color

How to color the button

18th Sep 2020, 8:35 PM
Azael Batista
Azael Batista - avatar
1 Answer
+ 3
Like every other html-element. You should target your element in your css-code by selector (is tag, classname, id etc.) and assign properties to it. Code below assign red color to background-color property on all buttons in document: button { background-color: red }
18th Sep 2020, 8:47 PM
Yuri
Yuri - avatar