【发布时间】:2015-08-03 14:47:36
【问题描述】:
制作一个关于页面我正在尝试获取 3 行文本,标题彼此位于同一行,就在带有背景图像的 css 圆圈下方。在此之下,我有一些文本需要使用各自的昵称。我不知道如何让文本在中心等间距。保证金似乎不起作用。让我知道如何做到这一点,如果可能的话。我已经在这个网站和其他多个网站上寻找了几个小时的答案,但还没有找到答案。所以我想我的问题是:我怎样才能在同一行获得 3 行文本并且仍然能够定位它们?`
这是我的代码。请记住,我使用的是骨架响应式网格系统。
#importantpeople {
text-align: center;
}
#manager-1 {
font-weight: 500;
text-align: left;
margin-left: -2px;
}
#manager-2 {
font-weight: 500;
text-align: center;
}
#manager-3 {
font-weight: 500;
text-align: right;
margin-right: 10px;
}
<div class="container">
<div class="row" id="importantpeople">
<h4 id="managers-head">Our Managers</h4>
<div class="one-third.column" id="screamer">
</div>
<div class="one-third.column" id="kinzu">
</div>
<div class="one-third.column" id="swezii">
</div>
<h5 id="manager-1">Screamer</h5>
<h5 id="manager-2">KINZU</h5>
<h5 id="manager-3">Swezii</h5>
<p>Just a guy chilling on his computer creating works of art for people</p>
<p>I am a guy who loves to get the things in my head onto paper. I have some great ideas that will blow your minds! Get ready!</p>
<p>I love Web, App and other designing. It is my goal to get rid of bad design in my city.</p>
</div>
</div>
【问题讨论】:
-
你在使用 Bootstrap 吗?如果是这样,请更新您的问题的标签。
-
为什么会被否决?
-
因为也许我们没有全貌,正如我在之前提供的解决方案中已经提到的那样。尝试在 Photoshop 或任何其他图形工具中绘制某种布局,准确指定您需要的内容,然后您一定会得到答案。你的问题比较模糊。
-
嗯,我还是个孩子,所以这可能就是我含糊不清的原因。我在洛杉矶 8 年级的成绩不是很好。下次我肯定会花更多时间来解释我需要什么。
标签: html css text text-alignment