blob: 9ce866acef9de5952c3d838d081c3fded7ace647 [file] [log] [blame]
<!DOCTYPE html>
<style>
body {
position: relative;
height: 100vh;
}
.item1 {
width: fit-content;
margin: 0px auto;
}
.item2 {
position: absolute;
bottom: 0;
background-color: cyan;
height: 50px;
width: 100%;
}
</style>
<div class="item1">item1</div>
<div class="item2">item2</div>