div가 200px의 지정된 너비라고 가정 해 보겠습니다. 그 다음에는 다른 양의 글자/다른 폭을 가진 div에 3 h1 요소가 있습니다. div를 채우려면 어떻게 수평으로 늘 립니 까?div를 가로로 채우기 위해 텍스트를 어떻게 설정할 수 있습니까?
<div id="Header">
<div class="Logo"><h1>CORROBORREE</h1><br><h1>FROG</h1><br><h1>PROJECT</h1></div>
단어가 필요한 단어는 포함 된 div의 너비입니다.
h1에서 텍스트 정렬 정렬을 시도했지만 아무런 효과가 없었습니다.
.Logo {
margin-left: 100px;
height:auto;
width: 250px;
background-color:#666;
font-family: Impact, Charcoal, sans-serif;
text-align: justify;
}
.Logo h1 {
font-size: 40;
text-align:justify;
display: inline;
}
누군가 다른 사람이 요청했습니다. 여기 봐 : [http://stackoverflow.com/questions/4355009/css-text-justify-with-letter-spacing][1] [1] : HTTP ://stackoverflow.com/questions/4355009/css-text-justify-with-letter-spacing –
이 또한 도움이 될 수 있습니다 : http://stackoverflow.com/questions/5976289/stretch-text-to-fit-width-of- div – Pete