1
I’d like to know how to change the color of the text of the button writing when I click on it, I want me to click on the button and it comes out of the golden color and stay in the white color until I click on it again, but what I’ve achieved so far is that it changes color only when the mouse gets on top. Below is the css and html code I’ve made so far: css:
#login{
@extend .table;
cursor:pointer;
position:relative;
width: 100%;
height: 79px;
#centralizar_menu{
@extend .row;
text-align: center;
height: 4.8em;}
&:hover{
#texto_cliente #titulo{
display: block!Important;
@extend .fonte_branca_13;
}
background-color: $dourado;
}
#texto_cliente{
width: 100%;
height: 1.5em;
padding: 0.5em 0em;
#titulo{
@extend .fonte_dourado_13;
}
}
}
HTML:
<div id="login">
<div id="centralizar_menu">
<div class="middle">
<div id="texto_cliente">
<div id="titulo">Login</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="clearfix"></div>
</div>
you only want with css? or want to use with jquery?
– Diego Souza
Preferably only with css
– Bernardo Kowacic
Ever tried using the pseudo-class ":active" ? up there you used the Hover, which is when you pass the mouse cursor.
– Diego Souza