테이블 패딩
테이블 패딩
표의 테두리와 내용 사이의 간격을 제어하려면 padding<td> 및 <th> 요소 의 속성을 사용하십시오 .
예
th, td {
padding: 15px;
text-align: left;
}
<!DOCTYPE html>
<html>
<head>
<style>
table, td, th {
border: 1px solid #ddd;
text-align: left;
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
padding: 15px;
}
</style>
</head>
<body>
<h2>The padding Property</h2>
<p>This property adds space between the border and the content in a table.</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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1277 | 기타 |
선택과집중
|
2개월 전 | 148 | |
| 1276 | CSS |
선택과집중
|
2개월 전 | 270 | |
| 1275 | CSS |
선택과집중
|
2개월 전 | 269 | |
| 1274 | CSS |
선택과집중
|
3개월 전 | 461 | |
| 1273 | 기타 |
선택과집중
|
4개월 전 | 400 | |
| 1272 | CSS |
선택과집중
|
4개월 전 | 531 | |
| 1271 | CSS |
선택과집중
|
5개월 전 | 579 | |
| 1270 | CSS |
선택과집중
|
5개월 전 | 457 | |
| 1269 | CSS |
선택과집중
|
5개월 전 | 539 | |
| 1268 | CSS | 6개월 전 | 427 | ||
| 1267 | 10개월 전 | 707 | |||
| 1266 | HTML | 10개월 전 | 837 | ||
| 1265 | CSS |
|
1년 전 | 768 | |
| 1264 | 1년 전 | 1258 | |||
| 1263 | HTML |
|
1년 전 | 790 | |
| 1262 | CSS |
|
1년 전 | 996 | |
| 1261 | CSS |
|
1년 전 | 1008 | |
| 1260 | HTML | 2년 전 | 1491 | ||
| 1259 | 기타 | 2년 전 | 828 | ||
| 1258 | CSS |
|
2년 전 | 1586 | |
| 1257 | HTML |
|
2년 전 | 1372 | |
| 1256 | CSS |
돈도없어개발하기도시러
|
2년 전 | 1272 | |
| 1255 | 2년 전 | 3611 | |||
| 1254 | 2년 전 | 4795 | |||
| 1253 | 2년 전 | 1553 | |||
| 1252 | 레이아웃 |
swallow
|
2년 전 | 1785 | |
| 1251 | 웹접근성 |
두리삼촌v
|
2년 전 | 2058 | |
| 1250 | 레이아웃 |
두리삼촌v
|
2년 전 | 1692 | |
| 1249 | 레이아웃 |
두리삼촌v
|
2년 전 | 3216 | |
| 1248 | 기타 |
돈도없어개발하기도시러
|
2년 전 | 1148 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기