Closed sendz closed 7 years ago
Hm, actually, both versions should work. If the "attribute" version is not working for you, can you please confirm that you have loaded the UIkit JavaScript? Without, it won't work.
As you can see, the test of the Cover component also uses the viewport-height attribute and it works: http://localhost/uikit/tests/cover.html
The JS version has optional features:
Docs: https://getuikit.com/docs/utility#viewport-height
Tests: https://getuikit.com/assets/uikit/tests/height-viewport.html
Use this code sample will not work
Instead, use this