Created
May 20, 2016 17:06
-
-
Save levonlee/93ef0383f3c698ee32b1fd185a691806 to your computer and use it in GitHub Desktop.
HTML: Add an announcement box on the top of the website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div class="alert-box"> | |
<span class="badge">Announcement</span> Some Text | |
</div> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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