I want to style the value attribute of the input tag
<input type="button" value="see me there">
My CSS code:
input:value{
Color: red;
}
I also tried:
input[type=value] {
Color: red;
}
input:value{
Colour: red;
}
I want to style the value attribute of the input tag
<input type="button" value="see me there">
My CSS code:
input:value{
Color: red;
}
I also tried:
input[type=value] {
Color: red;
}
input:value{
Colour: red;
}
2
Answers
you have a typo in you color css attribute: https://developer.mozilla.org/en-US/docs/Web/CSS/color
Style the
<input>
with anrgba()
color. You can affect the transparency of the text that way: