Absolute positioning bottom alignment and auto height not working correctly
Absolute positioning bottom alignment and auto height not working correctly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>absolute-position-top-left-right-bottom.html</title>
<style>
@page {
size: 220px 220px;
margin: 10px 20px 0 30px;
}
html {
font-size: 8px;
line-height: 10px;
}
.square {
background: red;
position: absolute;
margin: auto;
bottom: 10px;
left: 10px;
right: 10px;
}
</style>
</head>
<body>
<footer class="square">
Here goes some text that. No height is defined for this block.
</footer>
</body>
</html>