Sets
green
background color
document.body.style.backgroundColor = 'green';
Sets
display
property to
inline-block
for the element with id
element_id
document.getElementById('element_id').style.display = 'inline-block';
by Valeri Tandilashvili
4 years ago
JavaScript
CSS
The 10 Days of JavaScript
2
Pro tip: use ```triple backticks around text``` to write in code fences