<header class="top">
<h1 class="title">Account <span>Overview</span></h1>
<img class="logo-header" src="https://i.imgur.com/Ls2mMpk.png" alt="logo">
<div class="print-wrap">
<button class="print" onclick="window.print();">
<img src="https://i.imgur.com/xyPy7PR.png">
<span>Print</spa>
</button>
</div>
</header>
.top {
max-width: 1280px;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 1rem;
margin: auto;
}
.print-wrap {
margin-left: auto;
}
.print {
-weblit-appearance: none;
appearance: none;
border: none;
background: transparent;
padding: 1rem 0 0;
margin: 0;
font-family: Arial, Charles Modern, Helvetica, sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.5rem;
}
.title {
font-family: Charles Modern, Arial, Helvetica, sans-serif;
font-size: 2.25rem;
font-weight: 300;
line-height: 2.75rem;
letter-spacing: -0.15px;
margin: 0;
}
.logo-header {
width: 13vw;
max-width: 87px;
min-width: 60px;
height: auto;
}
/* adjust media query to suit requirements */
@media screen and (max-width: 680px) {
.top {
align-items: stretch;
}
.print-wrap {
margin: 0;
flex: 1 0 100%;
}
.title {
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 1.8rem;
}
.print span {
display: none;
}
.logo-header {
margin-left: auto;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.