클라이언트 용 전자 메일을 작성 중입니다.이 목록/테이블은 저를 혼란스럽게합니다. 다음은 시각적 인 디스플레이입니다. 당신이 볼 수 있듯이DIV UL 콘텐츠가 UL 내에서 센터링되지 않음
, 나는 기본적으로 3 열, 별도의 <ul>
에 의해 각이있다. 문제는 위의 <h3>
과 맞지 않는다는 것입니다. DW의 라이브 뷰에서 <ul>
을 클릭하면 컨텐츠가 오른쪽 정렬되었음을 알 수 있습니다. 나는 그것이해야하는 방식을 라인에 것처럼 것
.navlist {
background-color: #99a6b1;
height: 400px;
padding-top: 50px;
}
.navlist ul {
display: inline-table;
margin: 0 auto;
}
.navlist li {
list-style-type: none;
color: #ececed;
font-size: 16px;
padding-bottom: 10px;
text-align: center;
}
<section>
<div class="navlist" align="center">
<h3 style="color: #ececed; padding-bottom: 20px;">Our Commitment</h3>
<ul>
<li>
<img src="https://static1.squarespace.com/static/5756358501dbae2c96b689fe/t/5829efb69de4bb1fe2fd2a37/1479143354215/V3DG+Web+Icons-04.png?format=300w" alt "comprehensive services" height="150px">
</li>
<li>ComprehensivevServices</li>
</ul>
<ul>
<li>
<img src="https://static1.squarespace.com/static/5756358501dbae2c96b689fe/t/5829efc329687f358474b73a/1479143366452/V3DG+Web+Icons-05.png?format=300w" alt "Dependable Support" height="150px">
</li>
<li>Dependable Service</li>
</ul>
<ul>
<li>
<img src="https://static1.squarespace.com/static/5756358501dbae2c96b689fe/t/5829efd0414fb518a2c06557/1479143379620/?format=300w" alt "Easy To Work With" height="150px">
</li>
<li>Easy To Work With</li>
</ul>
</div>
</section>
내가 당신 왜 요청할 수 있습니다 이 레이아웃에 대한 목록을 사용하고 있습니까? –
[리스트가 약간 벗어나서 표시되는] 가능한 복제본 (http://stackoverflow.com/questions/8622498/list-displaying-slightly-off-centered) – TylerH