테치블 수직 정렬
테치블 수직 정렬
이 vertical-align속성은 <th> 또는 <td>에 내용의 세로 정렬 (위, 아래 또는 가운데)을 설정합니다.
기본적으로 표의 내용은 중간에 있습니다 (<th> 및 <td> 요소 모두에 해당).
다음 예제에서는 <td> 요소의 세로 텍스트 정렬을 아래쪽으로 설정합니다.
예
td {
height: 50px;
vertical-align: bottom;
}
<!DOCTYPE html>
<html>
<head>
<style>
table, td, th {
border: 1px solid black;
}
table {
border-collapse: collapse;
width: 100%;
}
td {
height: 50px;
vertical-align: bottom;
}
</style>
</head>
<body>
<h2>The vertical-align Property</h2>
<p>This property sets the vertical alignment (like top, bottom, or middle) of the content in th or td.</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Savings</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>$100</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
<td>$150</td>
</tr>
<tr>
<td>Joe</td>
<td>Swanson</td>
<td>$300</td>
</tr>
<tr>
<td>Cleveland</td>
<td>Brown</td>
<td>$250</td>
</tr>
</table>
</body>
</html>

게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 947 | CSS | 8년 전 | 1566 | ||
| 946 | CSS | 8년 전 | 2233 | ||
| 945 | CSS | 8년 전 | 1744 | ||
| 944 | CSS | 8년 전 | 2168 | ||
| 943 | CSS | 8년 전 | 2239 | ||
| 942 | CSS | 8년 전 | 2208 | ||
| 941 | CSS | 8년 전 | 2024 | ||
| 940 | CSS | 8년 전 | 1765 | ||
| 939 | CSS | 8년 전 | 2268 | ||
| 938 | CSS | 8년 전 | 1588 | ||
| 937 | CSS | 8년 전 | 1667 | ||
| 936 | CSS | 8년 전 | 1784 | ||
| 935 | CSS | 8년 전 | 2386 | ||
| 934 | CSS | 8년 전 | 2466 | ||
| 933 | CSS | 8년 전 | 1819 | ||
| 932 | CSS | 8년 전 | 2280 | ||
| 931 | CSS | 8년 전 | 1859 | ||
| 930 | CSS | 8년 전 | 1891 | ||
| 929 | CSS | 8년 전 | 1818 | ||
| 928 | CSS | 8년 전 | 1519 | ||
| 927 | CSS | 8년 전 | 1562 | ||
| 926 | CSS | 8년 전 | 3131 | ||
| 925 | CSS | 8년 전 | 2098 | ||
| 924 | CSS | 8년 전 | 1720 | ||
| 923 | CSS | 8년 전 | 2134 | ||
| 922 | CSS | 8년 전 | 2164 | ||
| 921 | CSS | 8년 전 | 2348 | ||
| 920 | CSS | 8년 전 | 1671 | ||
| 919 | CSS | 8년 전 | 2511 | ||
| 918 | CSS | 8년 전 | 1819 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기