CSS Message Notification Bars
Quick CSS Snippet to show a pretty message notification bar/box with an icon. These message bars are commonplace nowadays, and I use them quite a bit in my designs because they are an important way to attract user attention.
I've included the CSS, XHTML and images here so I have access to the code where ever I am working on a project. I hope it can be useful to you as well.
Unfortunately I cannot remember or find the original author for these, so if anybody knows please let me know so I can give them credit.
Credits and original post to Janko At Warp Speed.
There are four types of notification message.
Information messages can be used to share information with the user, suggestions or tips. Blue is used as a universal colour meaning "help".
Hooray! Success messages should be displayed after user successfully performs an operation such as registering, submitting a form or that something else has happened successfully. Green is a universal "go" or "success" colour.
Warning messages indicate that something may have gone wrong, but it isn't an emergency. They are intended to pass information to the user with more urgency than an information message. Yellow is used as a "caution" colour.
Oops! Something went horribly wrong. These messages should be used when an error occurs, validation fails or an action cannot be completed. Red is a universally recognised colour meaning alert, error, danger.
- <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>
That's it. Nice and easy isn't it?
These icons are part of the Knob Toolbar icons collection hosted on DeviantArt. Please visit the site to download the full icon pack.