0

Divs in JS

How could you use use css to style document.write();?

17th Sep 2018, 9:42 PM
Benjamin Fonville
Benjamin Fonville - avatar
5 odpowiedzi
+ 1
ok, thanks.
22nd Sep 2018, 3:21 PM
Benjamin Fonville
Benjamin Fonville - avatar
0
Short answer: Typically you wouldn't. Long answer: See "Definition and Usage" in the article below to find out why https://www.w3schools.com/jsref/met_doc_write.asp
18th Sep 2018, 5:42 AM
Janning⭐
Janning⭐ - avatar
0
Janning, but IS there a way?
22nd Sep 2018, 12:31 AM
Benjamin Fonville
Benjamin Fonville - avatar
0
document.write() is a method, not an element, so there is nothing visual to style.
22nd Sep 2018, 2:05 AM
Janning⭐
Janning⭐ - avatar
- 1
You can use document.getElementByID(ID).addClass(class)
18th Sep 2018, 12:15 AM
Alexander Santos
Alexander Santos - avatar