Answer the question
In order to leave comments, you need to log in
How to expand parent element to full width of child elements with position absolute?
There is a structure like this:
<html>
<div class=content>
<div class=head></div>
<div class=main></div>
</div>
<div class=footer></div>
</html>
height: 100vp;
html, body, .content { height:100%; }
Answer the question
In order to leave comments, you need to log in
The most common mistake is to sculpt absolute positioning where it doesn't belong.
2nd mistake is asking a question and not posting the
vp code - doesn't work on apple devices and old browsers.
It seems to me that we need to think carefully about the task and implement it with adequate methods.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question