Hover in selector: before

5

I came across a situation, even know how to work around, doing otherwise, but I would like to know if it is possible to use: hover in an: before element, I have the following structure:

<a href="" class="call-box call-info-city block">
  Informações da cidade
</a>
<a href="" class="call-box call-benefits block">
  Benefícios Fiscais
</a>

Where the call-box element has a selector: before, in the following form:

.call-box {
    float: left;
    font-family: 'LatoBold', arial, sans-serif;
    color: #909090;
    height: 52px;
    width: 150px;
    padding: 10px 0 0 62px;
    line-height: 16px;
    position: relative;
}
.call-box:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    border: 2px solid #00BF8B;
    height: 50px;
    width: 50px;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
}

In the hover of the call-box element, I would like to change the selector: before, is it possible?

    
asked by anonymous 11.09.2014 / 20:55

2 answers

7

Pfss, resolved.

.call-box:hover:before {
  background-color: #00BF8B;
}
    
11.09.2014 / 20:59
3

Yes, it is possible as follows: link

.call-box:hover:before {
    background-color: #00BF8B;
}
    
28.10.2014 / 07:46