Is it possible to add Alert box with CSS attributes?
For my code is that
if (username==null) {
alert("Please Fill Up Required Field");
}
else {
XXX
}
My code for my alert style
<style>
.alert {
padding: 20px;
background-color: #f44336;
color: white;
}
</style>
The Result that I want : https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_alert
But I always get this: https://gyazo.com/88f00fdf2654367aa148b033c8832698