M
M
Michael2017-09-14 14:00:24
css
Michael, 2017-09-14 14:00:24

How can I change the text so that it changes color when defocused?

d19720d2f21e469e9dcd045f4f072092.jpg
What to write in css so that the text becomes gray like a frame when defocused?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
one_day, 2017-09-14
@one_day

input:not(:focus) {
  color: grey;
}

C
cssfish, 2017-09-14
@cssfish

usually on the contrary, they write color, and then color on hover, focus, asset

input {color: gray;} 
input:hover {color: red;} 
input:focus {color: blue;} 
input:active {color: green;}

G
GreatRash, 2017-09-14
@GreatRash

To get started, google input placeholder .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question