S
S
Sayyflyy2015-10-17 09:31:37
css
Sayyflyy, 2015-10-17 09:31:37

How to make a div light up on hover?

43e9ffbaddc14155aa8e7178c6b1eca0.png

<a href="#"><div id="button-top"><h4>Попробовать<br> бесплатно</h4></div></a></div>

#button-top {
    border: 5px solid #ef7c01;
    margin: auto;
    width: 392px;
    height: 129px;
    text-align: center;
    color: #ef7c01;
    margin-top: 8%;
    padding-top: 1%;
    box-shadow: 0 0 26px 5px,
                inset 0 0 26px 5px;
                
}
#button-top a {
  text-decoration: none;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Golubev, 2015-10-17
@Sayyflyy

The :hover selector applies the style when hovering over an element:
For example, the code below will make the button glow red around the edges on hover:

#button-top:hover {
    box-shadow: 0 1px 4px 0 rgba(255, 36, 36, 0.37);
}

D
Deodatuss, 2015-10-17
@Deodatuss

transition

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question