Last active
February 2, 2019 03:13
-
-
Save jgmuchiri/076235a01bf02ef1867745c3ac0b619c to your computer and use it in GitHub Desktop.
Information blocks - alerts
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
<div style="width:500px; margin:0 auto"> | |
<div class="alertbox alertbox-info"> | |
This is an information message | |
</div> | |
<div class="alertbox alertbox-success"> | |
We have successfully processed your request! | |
</div> | |
<div class="alertbox alertbox-warning"> | |
The button you clicked has no action associated! | |
</div> | |
<div class="alertbox alertbox-error"> | |
Direct access to this location is not allowed! | |
</div> | |
</div> |
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
.alertbox { | |
border: 1px solid; | |
margin: 10px 0px; | |
padding: 15px 10px 15px 50px; | |
background-repeat: no-repeat; | |
background-position: 10px center; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 13px; | |
border-radius: 3px; | |
} | |
.alertbox-info { | |
color: #00529b; | |
background-color: #bde5f8; | |
background-image: url("info.png"); | |
} | |
.alertbox-success { | |
color: #4f8a10; | |
background-color: #dff2bf; | |
background-image: url("success.png"); | |
} | |
.alertbox-warning { | |
color: #9f6000; | |
background-color: #feefb3; | |
background-image: url("warning.png"); | |
} | |
.alertbox-error { | |
color: #d8000c; | |
background-color: #ffbaba; | |
background-image: url("error.png"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment