+ 8

Is it possible for us to change the styling of the SoloLearn alert box at our end ? eg. background image, font etc.

JS alert box.

16th Feb 2018, 1:48 AM
Tigress
Tigress - avatar
3 Réponses
+ 7
Thanks, will do
16th Feb 2018, 2:08 AM
Tigress
Tigress - avatar
+ 3
It's not possible to modify that element. Since it is an object of the system it is not subject to CSS. Even so, you can create a modal box and display it as if it were an alert, that way you would have control over it. https://www.w3schools.com/howto/howto_css_modals.asp
16th Feb 2018, 2:04 AM
Mickel
Mickel - avatar
+ 3
Example - Modal box vs Alert box Successful use of the modal box compared to the alert box. https://code.sololearn.com/WFC0N5D1V2S7/?ref=app
22nd Feb 2018, 1:29 AM
Tigress
Tigress - avatar