Button color | SoloLearn: Learn to code for FREE!


Button color

How to color the button

9/18/2020 8:35:01 PM

Azael Batista

1 Answer

New Answer


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 }