Answer the question
In order to leave comments, you need to log in
When I hover over the button, I change the background, how can I make the
in the button also change along with it?
When hovering over the button, with the help of hover I change the background, how to make it also change simultaneously with the background. Is it possible to do this with css?
<button class="btn" id="fonts"><p>Кнопка</p></button>
.btn {
background: transparent none;
}
.btn p {
color: #FFCC00;
}
.btn:hover {
background:#FED802;
}
.btn p:hover {
color: #004a80;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question