Hello guys,
I cant use VH or VW anymore! Is this correct? If yes, why?
Best,
Robert
Hello guys,
I cant use VH or VW anymore! Is this correct? If yes, why?
Best,
Robert
Hello Robert,
Thanks for writing in!
You can still use VH or VW in the latest version. Use the calc function instead with the vh or vw units in it. Take this for example: calc(100vh - 0px).
Hope this helps.
Thanks for you answer.
Why I cant use directly VH anymore? Why its now this complicated?
Hi Robert
I’ve taken a look and the VH and VW units are still working for me. Here’s a screenshot using in on a Bar element. I’m not seeing any issues setting the height and it’s being added to the Bar’s styling correctly.

Could you let us know where exactly you are no longer able to use those units? Thanks!
I am trying to use it in a section:

Hi @RSMG,
We can verify that those units are no longer available for margin and padding options and it’s not intentional. I’m adding this to our issue tracker, but for the meantime, please implement the workaround provided by Ruenel.
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.