<header class="style01">
<div id="logo">
<p>ロゴ画像</p>
</div>
<ul>
<li><a href="#">資料請求</a></li>
<li><a href="#">お見積り</a></li>
<li><a href="#">オンライン相談</a></li>
</ul>
</header>
<header class="style02">
<div id="logo">
<p>ロゴ画像</p>
</div>
<div class="rightSide">
<p class="tel">TEL:0120-000-000</p>
<ul>
<li><a href="#">資料請求</a></li>
<li><a href="#">お見積り</a></li>
<li><a href="#">オンライン相談</a></li>
</ul>
</div>
</header>
header {
background:#ccc;
display:flex;
justify-content: space-between;
align-items: center;
padding:0.8rem 1rem;
margin-bottom:4rem;
}
header #logo {
border:1px solid #333;
padding:0.4rem 1.2rem;
}
header.style01 ul {
display:flex;
justify-content: space-between;
align-items: center;
width: 32%;
list-style: none;
margin:0;
}
header.style01 ul li {
display:flex;
justify-content: space-between;
align-items: center;
width: 32%;
list-style: none;
text-align: center;
padding:0;
}
header.style01 ul li a {
text-decoration: none;
display: block;
padding: 0.6rem 0;
background: #000;
color: #fff;
font-size: 90%;
width: 100%;
}
header.style02 .rightSide {
width:32%;
}
header.style02 .rightSide .tel {
font-size: 200%;
font-weight: bold;
margin: 0 auto 0.6rem;
line-height: 1;
text-align: center;
}
header.style02 ul {
display:flex;
justify-content: space-between;
align-items: center;
width: 100%;
list-style: none;
padding:0;
margin:0;
}
header.style02 ul li {
display:flex;
justify-content: space-between;
align-items: center;
width: 32%;
list-style: none;
text-align: center;
}
header.style02 ul li a {
text-decoration: none;
display: block;
padding: 0.6rem 0;
background: #000;
color: #fff;
font-size: 90%;
width: 100%;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.