-
-
Save chankruze/61c75ff9d9d9cd3b4d870950a3c7fe78 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