如何从文本右边删除空格/填充?

时间:2018-11-19 15:16:33

标签: html css

最后一个W之后有一些空白,但是我如何删除它,使其与第一个W匹配?我没有为此设置任何填充,所以我不确定为什么它在那里。

大声笑,我无法发布此修改,因为我需要输入更多详细信息,不确定是否可以为这个简单的问题添加多少细节

Sample

代码

body,
html {
  height: 100%;
  margin: 0;
  font-size: 16px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  line-height: 1.8em;
  color: #666;
}

.pimg1,
.pimg2,
.pimg3 {
  position: relative;
  opacity: 0.70;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /*
        fixed = parallax
        scroll = normal
      */
  background-attachment: fixed;
}

.pimg1 {
  background-image: url('../img/image1.jpg');
  min-height: 100%;
}

.pimg2 {
  background-image: url('../img/image2.jpg');
  min-height: 400px;
}

.pimg3 {
  background-image: url('../img/image3.jpg');
  min-height: 400px;
}

.section {
  text-align: center;
  padding: 50px 80px;
}

.section-light {
  background-color: #f4f4f4;
  color: #666;
}

.section-dark {
  background-color: #282e34;
  color: #ddd;
}

.ptext {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  color: #000;
  font-size: 27px;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.ptext .border {
  background-color: #111;
  color: #fff;
  padding: 20px;
}

.ptext .border.trans {
  background-color: transparent;
}

@media(max-width:568px) {
  .pimg1,
  .pimg2,
  .pimg3 {
    background-attachment: scroll;
  }
}
<div class="pimg1">
  <div class="ptext">
    <span class="border">
            Parallax Website
          </span>
  </div>
</div>

1 个答案:

答案 0 :(得分:0)

请注意这是字母间距:8px; 但是为什么不分隔第一个字母呢?