Learn CSS Transforms by Building a Penguin - Step 104

Tell us what’s happening: Hi there i’ve solved the step however i was thinking that a static 300px : height: calc(100vh - 300px); will not account for the scale increase of the penguin?
i was wondering wether there is a way to reference a variable that is changing into the calc
i thought of creating a variable in root: but i would still have to set it at 300 px meaning it is not scaling also.

is There a way to reference another objects height or width or other values in css?

1 Like

Hi Dario and Welcome

There is a way, probably this article will help you:

Also others relative units can help you. This article from Learn CSS it can help too. This one is up to date: web.dev / Learn CSS / Sizing

Just keep going anyway, you always can back to this project and make it yours!

Happy coding!!

thanks for the links man appreciate :facepunch: , will continue and learn more as i try new stuff

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.