Good morning, can anyone help me give me a hint on how to get the current font size so I can increase it afterwards? ps: I'm using angularJs for functions!
Good morning, can anyone help me give me a hint on how to get the current font size so I can increase it afterwards? ps: I'm using angularJs for functions!
Hello,
There are several ways to do this, one of which is using the focus
pseudo-selector. Here are two examples, one increasing with scale
and another with font-size
:
#bt-1:focus {
transform: scale(1.5);
}
#bt-2:focus {
font-size: 30px;
}
<p><button id="bt-1">Click para aumentar</button></p>
<p><button id="bt-2">Click para aumentar</button></p>