- How do you position a container at the bottom of the page?
- How do I stretch an element to the bottom of the page?
How do you position a container at the bottom of the page?
Set the position of div at the bottom of its container can be done using bottom, and position property. Set position value to absolute and bottom value to zero to placed a div at the bottom of container.
How do I stretch an element to the bottom of the page?
If you need to make a <div> element extend to the bottom and fill the page, try the following. Use viewport units and set the height and width of the <body> element to “100vh” and “100vw” respectively. Both the margin and padding of the <html> and <body> elements must be set to 0.