ex05_3.html 2.32 KB
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
  html{
  	color:#000;
  	background:#fff;
  	padding:20px 0;
  	font: 14px/20px "맑은 고딕", "Malgun Gothic", "굴림", "Gulim", Verdan, Arial, Tahoma;
  }
  #board {
  	width:100%;
  	border-color:#888;
  	border-width:2px;
  	border-top-style:solid;
  	border-bottom-style:solid;
  	margin:0;
  	padding:0;
  }
  div.row{
  	border-color:#ccc;
  	border-width:1px;
  	border-top-style:solid;
  	border-bottom-style:solid;
  	overflow:auto;
  }
  div.col{
  	text-align: center;
  	margin: 1em;
  	float: left;
  }
  div.number{
  	width:50px;
  }
  div.title{
  	color: #0b6cb3;
  }
  div.name{
  	width:50px;
  	float:right;
  }
  div.date{
  	width:80px;
  	float:right;
  }
  #header {
  	background: olive;
  	color: white;
  	font-weight: bold;
  }
  #header div.title {
  	color: white;
  }
  </style>
</head>
<body>
  <div id="board">
    <div id="header">
      <div class="row">
        <div class="col number">번호</div>
        <div class="col title">제목</div>
        <div class="col date">날짜</div>
        <div class="col name">작성자</div>
      </div>
    </div>

    <div id="content">
      <div class="row">
        <div class="col number">5</div>
        <div class="col title">5th</div>
        <div class="col date">2017-03-28</div>
        <div class="col name">Mr.A</div>
      </div>
        <div class="row">
          <div class="col number">4</div>
          <div class="col title">4th</div>
          <div class="col date">2017-03-27</div>
          <div class="col name">Mr.A</div>
        </div>
          <div class="row">
            <div class="col number">3</div>
            <div class="col title">3rd</div>
            <div class="col date">2017-02-28</div>
            <div class="col name">Mr.A</div>
          </div>
            <div class="row">
              <div class="col number">2</div>
              <div class="col title">2nd</div>
              <div class="col date">2016-03-28</div>
              <div class="col name">Mr.A</div>
            </div>
              <div class="row">
                <div class="col number">1</div>
                <div class="col title">1st</div>
                <div class="col date">2015-01-26</div>
                <div class="col name">Mr.A</div>
              </div>
    </div>
  </div>
</body>
</html>