I want to change the text color of textarea into black using css?
Below is the name and id of the textarea,
'name' => 'right-answer',
'id' => 'right-answer',
thanks in advance.
textarea: {
color: black;
}
On the page I have multiple textareas.
I want to target only one textarea?
are these codes below correct?
textarea:right-answer {
color: black;
}
correct me if I’m wrong.
thanks
Hi admin,
I think I posted it on the wrong forum.
kindly move to css?
thanks
no, there exists no pseudo-class :right-answer
SamA74
7
Done.
Then you need to identify the textarea
with an id or class and use that in your css selector.
The pseudo classes for in-browser form validation are :valid
and :invalid
Though I have found that invalid
does not seem to pass css validation but I think it’s OK to use, it works in most modern browsers.
1 Like
If I’ve understood your first post correctly, you have an id of “right-answer” on this text-area, so you can use:
#right-answer {color: black;}
2 Likes
system
Closed
9
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.