【发布时间】:2022-01-12 06:46:43
【问题描述】:
我不确定我做错了什么,但无序列表上的项目符号点移到了页面的最左侧,而内容仍然在中心。将项目符号点移回中心同时让它们垂直对齐以使其看起来不整齐的最佳方法是什么?
这是我的 codepen 项目的链接:
https://codepen.io/danielanggggg/pen/LYjwOer
HTML
#welcome-section {
width: 100%;
height: 100vh;
top: 10vw;
left: 2vw;
display: block;
margin-top: 10rem;
text-align: center;
}
#navbar {
position: fixed;
top: 0px;
width: 100%;
display: flex;
justify-content: center;
font-size: 20px;
background-color: grey;
}
<section id="welcome-section">
<h1>Daniel Ang</h1>
<h3>Freelance Copywriter</h3>
<p>Hi there! I'm Daniel. I specialize in direct-response copywriting. I believe you are looking<br> for a copywriter to increase your conversion rate and ultimately sell your products or services.</p>
<p>I specialize in writing:</p>
<ul>
<li>Emails</li>
<li>Landing Pages</li>
<li>Sales Letters</li>
<li>Product Descriptions</li>
<li>Facebook/Instagram Ads</li>
</ul>
<p>If you need any of the services above, please don't hesitate to reach out!</p>
</section>
【问题讨论】:
标签: html css html-lists