Get actual screen heigh and use it to style container, not 100vh

Hi

I’m designing a mobile app and I need to get the screen height. I know most will say use 100vh but on a mobile, that will give me the full screen, I need the height minus the address bars etc.

I’m sure I could do this using javascript but I’m new to bricks and I can’t quite work out how to use for a container or block etc.

1 Like

look here - The large, small, and dynamic viewport units

You are after dvh units (dynamic view height)

1 Like

I usually prefer “svh” units, because “dvh” can jump around a little when we first scroll on mobile if the header is 100% dvh.

1 Like

Thanks guys, I didn’t even know of these, I’ll give both a try but say sounds more promising.