+ 2
Can you use CSS to edit JavaScript alert boxes
4 Answers
+ 6
You can also design your own Alert !!!đ
+ 4
The answer is no. CSS cannot style alert box.
Actually, you can use Sweet Alert instead.
To use it, include these tags in the head section:
<!-- Sweet alerts -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
I used it in my code and it is awesome.
https://code.sololearn.com/WSBW1Zt09gzu/?ref=app
+ 1
i have designed my alert box before with cssđ
0
No you cannot maybe if you use sweetjs library to make nice alert boxes