Use vertical percentage for css - height: x%;

I am trying to make a fluid layout for an application, and I have some problems using css to increase percentage growth. It uses the horizontal window size to indicate the height% when I want it to get that percentage of the vertical window size. Is this possible or am I out of luck?

width: x%;
height: y%;

x and y are the percentage that I want this item to be. Both are determined by the horizontal size of the window, and I want each of them to use the corresponding axis.

+3
source share
1 answer

JavaScript node, % -. P DIV CSS%; - . , onload JS .

+2

Source: https://habr.com/ru/post/1794965/


All Articles