【发布时间】:2020-07-23 09:06:27
【问题描述】:
我希望我的文本在网页中间居中,直到我将大小和字母间距增加到我想要的为止。当我这样做时,即使我有 0 填充并且有足够的空间,第二个单词也会移动到下一行。请帮忙。这是我的文本的 css:
.centered {
font-family: Seravek;
font-size: 500%;
color: white;
letter-spacing: .16em;
position: absolute;
top: 42%;
left: 50%;
transform: translate(-50%, -50%);
}
【问题讨论】:
-
您应该添加更多代码。它增加了获得帮助的机会