<header class="fixed">
<h1>PENGIN BLOG</h1>
<nav>
<ul class="menu-group">
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Blog</a></li>
</ul>
</nav>
</header>
<main>
<section class="section">
<h2 class="text">色が反転して見えるよ</h2>
<img src="https://drive.google.com/uc?export=view&id=1WRQVpgmW1s5YrzB0iQrMYfbU4MvNiyvH" alt="" />
</section>
<section class="section">
<h2 class="text">色が反転して見えるよ</h2>
<img src="https://drive.google.com/uc?export=view&id=1T0HWZM16tQRdHcA6Vspor7wa7K9Zh8cQ" alt="" />
</section>
<section class="section">
<h2 class="text">色が反転して見えるよ</h2>
<img src="https://drive.google.com/uc?export=view&id=10mqA1CfPi8N9_McRCe0bOGR_jUHzPEch" alt="" />
</section>
<section class="section">
<h2 class="text">色が反転して見えるよ</h2>
<img src="https://drive.google.com/uc?export=view&id=1EnQP6JWlE02lzrcUi0d5zoMihOsWkruG" alt="" />
</section>
<section class="section">
<h2 class="text">色が反転して見えるよ</h2>
<img src="https://drive.google.com/uc?export=view&id=1bW4fKXZFM_wPHSSf6EewRYX-hV5iNhvu" alt="" />
</section>
</main>
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap");
* {
box-sizing: border-box;
font-family: "Arial", "Zen Maru Gothic", sans-serif;
margin: 0;
padding: 0;
}
main {
background-color: #fff;
padding-top: 4.5em;
}
img {
height: auto;
width: 100%;
vertical-align: bottom;
}
a {
color: #fff;
text-decoration: none;
}
.fixed {
color: #fff;
display: flex;
justify-content: space-between;
mix-blend-mode: difference;
padding: 16px 40px;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.section {
margin: 0 auto;
position: relative;
z-index: 0;
}
.text {
color: #fff;
font-size: 2em;
font-weight: bold;
padding: 2em;
position: absolute;
top: 0;
}
.menu-group {
align-items: center;
display: flex;
gap: 1.5em;
height: 100%;
list-style: none;
}
@media screen and (max-width: 480px) {
main {
padding-top: 6.5em;
}
.fixed {
padding: 1em;
}
.text {
padding: 0.5em;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.