Instantly share code, notes, and snippets.

Embed
What would you like to do?
Css message boxes: Info, Success, Warning, Error, Validation
<!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>
@haihoa

This comment has been minimized.

haihoa commented Jan 27, 2016

You can see message box here: http://emailchecker.info/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment