Created
August 19, 2013 15:03
-
-
Save atomgiant/6270147 to your computer and use it in GitHub Desktop.
Notification box css for full width
This file contains hidden or 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
| <style> | |
| #notification-box { | |
| position: absolute; | |
| top: 25px; left: 0; | |
| width: 100%; | |
| padding: 0; margin: 0; | |
| } | |
| </style> | |
| <div id="notification-box"> | |
| <div class="alert alert-error"> | |
| <a class="close" data-dismiss="alert">×</a> | |
| <div id="flash_alert">There was a problem...</div> | |
| </div> | |
| </div> | |
| </div> |
lojic
commented
Sep 6, 2013
var setAlert = function (msg) {
$('.flash-alerts .alert-danger .flash-msg').text(msg);
$(".flash-alerts").show();
$(".flash-alerts .alert-danger").show();
$(".flash-alerts").delay(5000).fadeOut();
};
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment