<html lang="ja">
<head>
<title>サンプルページ</title>
</head>
<body>
<header class="header">
ヘッダーです
<nav class="nav">
<ul>
<li>menu1</li>
<li>menu2</li>
<li>menu3</li>
</ul>
</nav>
</header>
<main class="main">
<article class="article">
記事がここに入ります
</article>
<section class="section">
<aside class="ad">
広告1
</aside>
<aside class="ad">
広告2
</aside>
</section>
</main>
<footer class="footer">
フッターです
</footer>
</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;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.