无法在Bootstrap 4网格中对齐旋转后的文本

时间:2019-10-23 20:09:04

标签: html css bootstrap-4

我有一个使用Bootstrap 4网格的网格,我希望如下所示:

enter image description here

我几乎完成了100%,我遇到的问题是垂直旋转的文本的对齐方式与颜色网格重叠。我正在使用Bootstrap扩展printf来旋转文本。我似乎无法弄清楚如何对齐标签。

enter image description here

这是一个codeply小提琴: https://www.codeply.com/go/Xd4pcADxml

1 个答案:

答案 0 :(得分:2)

我为标签添加了自定义CSS,而不是“ rotate-sm-l-90”类。

.vertical-label {
transform: rotate(-180deg);
writing-mode: vertical-lr;
padding: 16px;

}

Here is the result