I
I
Igor Pavlenko2016-02-24 10:24:52
css
Igor Pavlenko, 2016-02-24 10:24:52

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

5 answer(s)
D
Denis Bogdanov, 2016-02-24
@den-bogdanov

You can't do that. Solve this problem in a different way.

E
Eugene, 2016-02-24
@iamd503

Show a picture, code, words are difficult to navigate

S
Super User, 2016-02-24
@sergeystepanov1988

This is easier to achieve using flexbox . If support for IE < 10 is not important, then you can safely use it.

H
Hazrat Hajikerimov, 2016-02-24
@hazratgs

You can use fixed, but only if body is the size of the window

B
bro-dev, 2016-02-26
@xPomaHx

why no one said that it's easy in js can be done?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question