+ 2

Can you use CSS to edit JavaScript alert boxes

26th Aug 2018, 3:38 PM
Emmanuel Nsikan-david
Emmanuel Nsikan-david - avatar
4 Answers
+ 6
You can also design your own Alert !!!😎
27th Aug 2018, 5:30 AM
Try It Yourself
Try It Yourself - avatar
+ 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
26th Aug 2018, 4:27 PM
Ledio Deda
Ledio Deda - avatar
+ 1
i have designed my alert box before with css😘
27th Aug 2018, 5:27 PM
Tech Inary
Tech Inary - avatar
0
No you cannot maybe if you use sweetjs library to make nice alert boxes
27th Aug 2018, 11:19 AM
Charlie Da stiles
Charlie Da stiles - avatar