<html lang="ja">
  <head>
    <title>サンプルページ</title>
  </head>
  <body>
    <div class="header">
      ヘッダーです
      <div class="nav">
        <ul>
          <li>menu1</li>
          <li>menu2</li>
          <li>menu3</li>
        </ul>
      </div>
    </div>
    <div class="main">
      <div class="article">
        記事がここに入ります
      </div>
      <div class="section">
        <div class="ad">
          広告1
        </div>
        <div class="ad">
          広告2
        </div>
      </div>
    </div>
    <div class="footer">フッターです</div>
  </body>
</html>
body{
  margin: 0;
  background: #f6f5f4;
  color: #1a1a1a;
}
.header{
  height: 50px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffce5b;
}
.nav{
  width: 50%;
}
.nav ul{
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  list-style:none;
}
.nav ul li{
  margin-left: 5px;
}
.main{
  padding: 10px;
}
.article{
  width: 90%;
  height: 100px;
  margin: 0 auto 15px;
  padding: 10px;
  background: #ff838b;
  text-align: center;
}
.section{
  width: 90%;
  height: 100px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #b3d874;
  text-align: center;
}
.ad{
  width: 40%;
  height: 50px;
  padding: 10px;
  background: #f6f5f4;
}
.footer{
  height: 50px;
  padding: 10px;
  background: #ffce5b;
  text-align: center;
  background: #ffce5b;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.