JSFiddle - React, Tailwind, and code Playground
HTML
<h2>Căn giữa theo chiều dọc</h2>
<p>Trong ví dụ này,chúng ta sử dụng thuộc tính padding để căn giữa phần tử khối theo chiều dọc:</p>
<div class="center">
<p>Căn giữa theo chiều dọc.</p>
</div>
CSS
.center {
padding: 70px 0;
border: 3px solid green;
}