Created
December 12, 2012 19:55
-
-
Save csndra0504/4271004 to your computer and use it in GitHub Desktop.
Css message boxes: Info, Success, Warning, Error, Validation
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body{ | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 13px; | |
} | |
.info, .success, .warning, .error, .validation { | |
border: 1px solid; | |
margin: 10px 0px; | |
padding: 15px 10px 15px 50px; | |
background-repeat: no-repeat; | |
background-position: 10px center; | |
} | |
.info { | |
color: #00529B; | |
background-color: #BDE5F8; | |
background-image: url('img/info.png'); | |
} | |
.success { | |
color: #4F8A10; | |
background-color: #DFF2BF; | |
background-image: url('img/success.png'); | |
} | |
.warning { | |
color: #9F6000; | |
background-color: #FEEFB3; | |
background-image: url('img/warning.png'); | |
} | |
.error{ | |
color: #D8000C; | |
background-color: #FFBABA; | |
background-image: url('img/error.png'); | |
} | |
.validation{ | |
color: #D63301; | |
background-color: #FFCCBA; | |
background-image: url('img/validation.png'); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="info">Info message</div> | |
<div class="success">Successful operation message</div> | |
<div class="warning">Warning message</div> | |
<div class="error">Error message</div> | |
<div class="validation">Validation message 1<br>Validation message 2</div> | |
</body> | |
</htm> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can see message box here: http://emailchecker.info/