Answer the question
In order to leave comments, you need to log in
How to stretch a div so that it moves other divs to fit the window borders?
I'm trying to "pull" the layout on wordpress. Split one page into several.
https://paulderden.000webhostapp.com/contacts/
I would like there to be no white space at the bottom, and the block with contacts would occupy the remaining space in the center.
I tried to set this block (class="contacts") to height: auto and 100%, etc.
I suppose that he will have to remove the padding, put
display: flex;
justify-content: space-between
Answer the question
In order to leave comments, you need to log in
html, body {
height: 100%;
}
body {
display: table;
width: 100%;
}
#contacts {
display: table-row;
height: 100%;
}
#contacts > .container {
display: table-cell;
vertical-align: middle;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question