어떻게 내 단추를 가로로 정렬 할 수 있습니까? 그 위에 나는 그 버튼에 텍스트를 추가하고 싶다. 이것이 내가 현재 가지고있는 것입니다.한 줄에 CSS/HTML의 단추를 가로로 텍스트 정렬 하시겠습니까?
HTML 본문 부분 :
<body>
<div class="tile_div">
<table class="tile_table">
<tr>
<td>
<img class="tile_image" height="50px" width="100px" src="./images/button_left.png"/>
<p class="tile_p">Button one</p>
</td>
<td>
<img class="tile_image" height="50px" width="100px" src="./images/button_left.png"/>
<p class="tile_p">Button two</p>
</td>
<td>
<img class="tile_image" height="50px" width="100px" src="./images/button_left.png"/>
<p class="tile_p">Button three</p>
</td>
</tr>
</table>
</div>
</body>
CSS :
.tile_image {
float: left;
margin: 0px;
}
.tile_image img {
position:absolute;
}
.tile_p {
text-align:center;
position:relative;
}
어떻게 것 같습니다 : 나는 텍스트가 버튼의 중간에 할 http://img580.imageshack.us/img580/8867/uo7i.png
그 아래에 있지 .
편집 : 나는 배경 이미지 을 사용하여 어느 때
http://img580.imageshack.us/img580/8867/uo7i.png
그러나이 일이 : http://img580.imageshack.us/img580/6127/yz4.png
좋아, 그래서 이미지가 그들이 방법이 보일 것 같습니다 src="./images/button_left.png"
를 사용할 때
은 "버튼"을 클릭 할 수 안 나는 가장 좋은 방법은이 같은 떴다 링크를 사용하는 것입니다 생각하십니까? – bitWorking
그들은 clickable해야한다, 나는 html & css에 새로운이다. – Alex
내 대답 좀 봐 http://stackoverflow.com/questions/17629788/aligning-buttons-in-css-html-in-one-line-horizontally-w-text/17629849#17629849 –