How to increase size in all directions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to increase size in all directions?

I have made a test website to show the problem. Whenever i increase the size, the text moves downward. but i cant get it to increase in all directions. For Demonstration purpose i made the increased size 5.2rem (will only be 1.2rem in the end) https://code.sololearn.com/W7z3zEebFycL/?ref=app

26th Oct 2019, 12:17 PM
Steven Taskin
Steven Taskin - avatar
4 Answers
+ 2
Okay, i understand what you want now. Try to use transform selector instead, remove font-size /* font-size: 5.2rem; */ transform-origin: 0% 50%; transform: scale(5.2);
26th Oct 2019, 12:40 PM
Calviղ
Calviղ - avatar
+ 1
Calviղ Thank you very much!
26th Oct 2019, 12:45 PM
Steven Taskin
Steven Taskin - avatar
0
Remove position: absolute;
26th Oct 2019, 12:34 PM
Calviղ
Calviղ - avatar
0
Calviղ if i remove position absolute, the rest will be moved around when hovering. And the other problem isnt solved by that, since it still doesnt increase in size in all directions but only downwards.
26th Oct 2019, 12:37 PM
Steven Taskin
Steven Taskin - avatar