Skip to content

Instantly share code, notes, and snippets.

@levonlee
Created May 20, 2016 17:06
Show Gist options
  • Save levonlee/93ef0383f3c698ee32b1fd185a691806 to your computer and use it in GitHub Desktop.
Save levonlee/93ef0383f3c698ee32b1fd185a691806 to your computer and use it in GitHub Desktop.
HTML: Add an announcement box on the top of the website
<body>
<div class="alert-box">
<span class="badge">Announcement</span> Some Text
</div>
</body>
.alert-box {
background-color: #fffbcc;
color: #777;
font-size: 14px;
line-height: 23px;
padding: 13px 16px;
text-align:center;
font-family:Arial, Helvetica, sans-serif;
}
.alert-box .badge {
background-color: #f58f2a;
border-radius: 3px;
color: #fff;
margin-left: 4px;
margin-right: 4px;
padding: 3px 5px 3px 4px;
font-weight:bold;
text-transform: uppercase;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment