Answer the question
In order to leave comments, you need to log in
Why does the DIV block treat height: 100% as the full height of the site?
Link to JSFiddle
Essentially, what is the question.
I have a main div in which i have set
position: absolute;
height: 100%;
Answer the question
In order to leave comments, you need to log in
Just because you want the height property to work that way doesn't mean it should work that way, read the spec.
The problem you are trying to solve is solved by grids or flexbox
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://css-tricks.com/snippets/css/complete-guide. ..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question