0

Can javascript be styled using CSS?

26th Apr 2018, 7:43 PM
Ntsako Sibusiso Malabe
Ntsako Sibusiso Malabe - avatar
4 odpowiedzi
+ 1
Yes, you can style any html element with javascript by using "style" keyword. <script> document.getElementById("p").style.color = "blue"; </script>
26th Apr 2018, 7:48 PM
Rhythm Khandelwal
+ 1
You can try Alertify.js, which is a great JavaScript library to style alert, confirm and prompt boxes. https://stackoverflow.com/questions/7853130/how-to-change-the-style-of-alert-box?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
26th Apr 2018, 7:57 PM
Rhythm Khandelwal
+ 1
thanks again been a great help
26th Apr 2018, 7:59 PM
Ntsako Sibusiso Malabe
Ntsako Sibusiso Malabe - avatar
0
ok thanks its really helpful but if i were to make alert would i be able to style it?
26th Apr 2018, 7:50 PM
Ntsako Sibusiso Malabe
Ntsako Sibusiso Malabe - avatar