I am looking to implement a sticky notification that can be easily closed by the user.
Here is what I have accomplished so far:
.top-head {
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
background: #FFFFFF;
width: 100%;
float: left;
height: 50px;
padding: 10px;
}
.header {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
background: #FFFFFF;
height:50px;
padding: 10px;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="//stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<div class="top-head fixed-top">
<span>Get $5 off when you spend $10. Enter FIVEOFF at checkout.</span>
<span class="float-right">x</span>
</div>
<div class="header">
Logo
</div>
UPDATE: In addition, I have included the header in order to address the issue more effectively.