<分区>
我想要从下到上垂直对齐的文本。如何实现它。附上预期的结果。
HTML
<div class="class1">
<div class="class2">Title from bottom to top</div>
</div>
CSS
.class1 {
background: #1ac6d3;
position: relative;
width: 40px;
height:200px;
}
.class2 {
position: absolute;
top: 35%;
left: 50%;
width: 200px;
}
预期输出