【发布时间】:2018-12-14 06:41:39
【问题描述】:
我正在尝试将文本向左对齐,但也将内容居中。它不工作。
像这样:image of the design I wish to accompolish。
这是我的 PUG 标记,我已将其余信息放在 codepen.io 上:
section.team-section.section
.container
.row.center-it
.center-it.col-xs-12.col-sm-12.col-md-8.col-lg-8.u-align--center
h1.section__title.section__title--block
| <span class="u-display-block type---color-light-grey">Experienced.<br></span><span class="type--color-green u-display-block">Reliable.<br></span>
<span class="u-display-block type---color-light-grey">Commited.</span>
p.section__description
| Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
我正在使用 flexbox 框架,所以复制的内容太多了 并粘贴到这里。
这是我在 codepen.io 上的完整代码,此链接将提供所有 scss 标记: https://codepen.io/harp30/pen/GGbKdp?editors=1100
【问题讨论】: