백

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

· 2007-04-25 (수) 11:22:42 · 4122
//기존
<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에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
08-07-06 조회 2,338
08-05-21 조회 3,502
08-05-13 조회 3,368
08-04-17 조회 3,733
08-02-19 조회 2,511
08-01-18 조회 2,720
08-01-10 조회 2,709
07-10-22 조회 2,442
07-10-09 조회 3,199
07-10-03 조회 2,427
07-07-06 조회 2,999
07-07-06 조회 3,360
07-07-06 조회 2,979
07-06-28 조회 2,529
07-06-05 조회 2,379
07-06-05 조회 2,926
07-05-30 조회 2,256
07-05-02 조회 2,664
07-04-15 조회 4,015
07-04-11 조회 2,568
07-04-05 조회 2,846
07-03-31 조회 2,073
07-03-31 조회 3,006
07-03-30 조회 2,692
07-03-24 조회 2,992