MLCLOUD MLCLOUD - 10 months ago 72
CSS Question

How to style buttons for calculator HTML

Using your help, I styled the number buttons, but I want to make the +, -, * the color red

Code at:


To select the <input type = button> you can use this code to set a background color

input[type=button] { background-color:green }

With this you can also set width /height anything you want. OR you can give them all a class and style by class.

<input type="button" class="myButtons">


.myButtons { background-color:green }