css_ex03.html 2.21 KB
<!DOCTYPE html>
<html lang="ko">
<head>
  <link rel="stylesheet" type="text/css" href="mystyle.css" />
  <meta charset="utf-8">
  <style>
    div#board {
      border-top: 2px solid #a0a0a0;
      border-bottom: 2px solid #a0a0a0;
    }

    div#header {
      color: #FFF;
      background-color: #bdb76b;
    }

    #header .coltitle {
      color: #FFF;
    }

    div.row {
      border-top: 1px solid #a0a0a0;
      border-bottom: 1px solid #a0a0a0;
      height: 35px;
      padding-top: 10px;
    }

    div.colnumber {
      float: left;
      width: 7%;
      text-align: center;
    }

    div.coltitle {
      float: left;
      width: 40%;
      color: #1E90FF;
    }

    div.coldate {
      float: left;
      width: 20%;
      text-align: center;
    }



    div.colname {
      text-align: center;
    }

  </style>
</head>
<body>
  <div id="board">
    <div id="header">
      <div class="row">
        <div class="colnumber">번호</div>
        <div class="coltitle">제목</div>
        <div class="coldate">날짜</div>
        <div class="colname">작성자</div>
      </div>
    </div>

    <div id="content">
      <div class="row">
        <div class="colnumber">10</div>
        <div class="coltitle">10번째게시물</div>
        <div class="coldate">2015-09-11</div>
        <div class="colname">쯔위</div>
      </div>
      <div class="row">
        <div class="colnumber">9</div>
        <div class="coltitle">9번째게시물</div>
        <div class="coldate">2014-08-21</div>
        <div class="colname">지효</div>
      </div>
      <div class="row">
        <div class="colnumber">8</div>
        <div class="coltitle">8번째게시물</div>
        <div class="coldate">2014-05-27</div>
        <div class="colname">나연</div>
      </div>
      <div class="row">
        <div class="colnumber">7</div>
        <div class="coltitle">7번째게시물</div>
        <div class="coldate">2014-03-15</div>
        <div class="colname">모모</div>
      </div>
      <div class="row">
        <div class="colnumber">6</div>
        <div class="coltitle">6번째게시물</div>
        <div class="coldate">2013-12-25</div>
        <div class="colname">사나</div>
      </div>
    </div>
  </div>
</body>
</html>