Answer the question
In order to leave comments, you need to log in
Absolute positioning of element relative to body?
How to position an element relative to body if it is in an element with position: relative?
The parent has a certain height and the block that lies in it must stretch 100% in height relative to the body.
Answer the question
In order to leave comments, you need to log in
This is easier to achieve using flexbox . If support for IE < 10 is not important, then you can safely use it.
You can use fixed, but only if body is the size of the window
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question