P
P
Pavel Burns2015-10-30 03:03:56
css
Pavel Burns, 2015-10-30 03:03:56

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;
    }

Thanks in advance and sorry if this is a dumb question, but Google is getting tired. jsfiddle.net/22rtnr8u

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2015-10-30
@63pHc

.btn:hover p {
color: #004a80;
}
jsfiddle.net/22rtnr8u/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question