0

I have the following code on a form button and I can't change the color of it's internal text:

<input type="button" name="continue" value="" class="next">

input.next {
color: white;
background: #199dd9;
text-align: left;
text-transform: uppercase;
}

The other styles (i.e. text-align, bg color) work, but the font color is still black. I inspect in devtools and nothing seems to be overwriting it.

1

1 Answer 1

2

Instead of the <input> tag, use HTML5's <button> tag.

button.next {
color: white;
background: #199dd9;
text-align: left;
text-transform: uppercase;
}
<button name="continue" class="next">Click me!</button>

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.