백

1px 라인 css와 2개이상 class 적용.

· 2007-04-25 (수) 11:22:42 · 5288
//기존
<table width="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>내용</td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"></td>
  </tr>
</table>


//css
<style type="text/css">
.line_bottom {border-bottom:1px solid #ccc; }
.line_top {border-top:1px solid #ccc; padding:4px 0 4px 0;}
.div_width {width:500px;}
</style>

-div 바텀 라인
<div class="line_bottom div_width">내용</div>

-div 탑 라인
<div class="line_top div_width">내용</div>

-table "내용" 아래 위로 한줄씩
<table width="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="line_bottom line_top">내용</td>
  </tr>
</table>

예제처럼 두가지 이상 클래스 적용시
class="class_01 class_02" 식으로 한다.

[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,771
12-01-11 조회 1.2만
12-01-10 조회 2,866
12-01-08 조회 3,456
12-01-05 조회 5,345
11-12-29 조회 3,067
11-12-27 조회 2,854
11-12-25 조회 3,036
11-12-22 조회 3,473
11-12-14 조회 2,933
11-12-12 조회 3,568
11-11-28 조회 3,390
10-10-19 조회 2,849
08-09-05 조회 3,768
08-09-05 조회 3,583
08-06-14 조회 3,323
08-04-22 조회 3,608
08-04-17 조회 3,611
07-10-03 조회 4,221
07-10-03 조회 3,617
07-10-03 조회 7,300
07-10-03 조회 4,579
07-10-03 조회 3,277
07-10-03 조회 2,871
07-10-02 조회 3,585
07-10-02 조회 3,113
07-09-27 조회 5,032
07-09-27 조회 3,856
06-09-26 조회 3,522
06-09-26 조회 4,743
06-09-22 조회 3,913
06-09-22 조회 3,534
06-09-22 조회 4,283
06-09-21 조회 4,212
06-08-18 조회 3,701
05-11-30 조회 4,750
05-07-15 조회 4,602
05-03-23 조회 4,660
05-03-14 조회 3,327
05-03-13 조회 2,702
04-08-05 조회 5,778