Answer the question
In order to leave comments, you need to log in
How to set block height to viewport height?
Hey!
I have two problems:
1) UIKit 3 has .uk-height-viewport
- https://asuikit.com/v3/height
I apply it like this:
<div class="uk-width-1-2 uk-overflow-auto uk-height-viewport">
<div class="uk-width-1-2 uk-overflow-auto" uk-height-viewport>
.uk-height-viewport {
max-height: 90vh;
}
<div class="uk-flex-center" uk-grid>
<div class="uk-width-1-2 uk-overflow-auto uk-height-viewport">
Answer the question
In order to leave comments, you need to log in
I throw off a couple of examples as an answer to item 2, but I think here is the solution to item 1 at the same time, for which I did not see the code.
Option one:
..
second nested.
to understand the first line and the essence was taken from the question itself
..
The width of the blocks can be changed. there should be no questions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question