Skip to content

Instantly share code, notes, and snippets.

@geetfun
Created March 12, 2019 01:19
Show Gist options
  • Save geetfun/c0193bebb95b5157c10e0e5a0b6d4606 to your computer and use it in GitHub Desktop.
Save geetfun/c0193bebb95b5157c10e0e5a0b6d4606 to your computer and use it in GitHub Desktop.
Champ Below Header Example
<div class="container">
<div class="row">
<div class="col">
<div class="below-header">
<div class="below-header-wrapper">
<h2>Welcome to Champ's live demo</h2>
<p>Did you know that this isn't just a demo?<br>This is our live pre-sales Q&A and support forum. Take a look around and say "Hello".</p>
</div>
</div>
</div>
</div>
</div>
<style type="text/css">
.below-header {
background: url(https://cdn.shopify.com/s/files/1/2786/3878/t/1/assets/pic3-p2.png?4509396534301255899);
background-repeat: no-repeat;
height: auto;
width: 100%;
background-size: cover;
background-position: 50% 73%;
color: white;
position: relative;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
h2 {
font-size: 30px;
font-weight: 100;
}
p {
font-size: 20px;
}
h2, p {
font-weight: 100;
color: white !important;
text-align: center;
}
.below-header-wrapper {
width: 100%;
padding-top: 20px;
padding-bottom: 20px;
padding-left: 10px;
padding-right: 10px;
background-color: darken(#4256AC, 20%);
position: relative;
top: 0;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
}
@media (min-width: 768px) {
.below-header {
height: 300px;
.below-header-wrapper {
position: absolute;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment