I want to move a div to the bottom of the screen. The translate property only moves the div in relation to its size:
<html>
<body>
<div class="test"></div>
</body>
</html>
html, body{
margin: 0;
width: 100%;
height: 100%;
}
.test{
height: 25%;
width: 100%;
transform: translate(0,100%);
background: blue;
}
This will move the div downwards by 100% of it's height (25% of the screen). How can I move the div to the bottom of the screen?