基本上,我的问题是关于容器中的文本。当屏幕尺寸变小时,它会进入下一行。此时,它不再垂直居中,因为出现了一条新线。
我怎样才能保持它垂直居中?
<div class="low">
<h4 class="title"> Text to be centered. </h4>
</div>
我通常会为每个换行符调整填充,但这样做既麻烦又耗时。一定有更好的方法。
我有一个三列的div,想垂直居中第三个div (data_cell3)。我该怎么做呢?
我希望它垂直居中对齐,无论文本区域有多大。
这里有一个链接:
<div class="wrapper-data">
<div class="data_row">
<div class="data_cell1">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum