How to get the current font size in css and increase [duplicate]

1

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!

    
asked by anonymous 21.08.2017 / 19:24

1 answer

1

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>
    
21.08.2017 / 19:30