So I have this code..
How can I style it with CSS?
- Code:
[panda=js]$(document).ready(function() {
jQuery.get('/privmsg?folder=inbox', function(data) {
var ibx = data.getElementsByClassName('inbox');
var lngt = ibx.length;
if(lngt++) {
var toast = document.createElement('div');
var content = '<b>You have new message!</b>'
toast.appendChild(content);
}
});
});
How can I style it with CSS?
- Code:
[panda=css]#toast { position:fixed; background:#000; font-family:courier; }