+ 3

Is it possible to make the alert message inside the dialogue box align to center? Sorry for the noob question

https://code.sololearn.com/WkhSG82t71Gu/?ref=app

27th Oct 2017, 12:59 AM
Stephen Talorong
Stephen Talorong - avatar
2 Respostas
+ 9
That can't be implemented into the alert message. HTML5 doesn't support dialogue boxes like this; only webpages you can use align and such properties.
27th Oct 2017, 3:03 AM
Glitched
Glitched - avatar
+ 7
You can use 'tab' characters (\t) to move the text over, e.g. try alert("\t\t\tcenter"); but it's not very satisfactory. There is no 'center' character.
27th Oct 2017, 5:05 AM
David Ashton
David Ashton - avatar