My goal is to apply multiple CSS styles to a button with the id of name_button
.
Below is the JavaScript code I have written:
var name_button = document.getElementById('name_button');
name_button.style.display = 'block';
name_button.style.margin-left = '125px';
name_button.style.padding-right = '0px';
However, the last two lines (
name_button.style.margin-left = '125px';
and name_button.style.padding-right = '0px';
) are causing my code to malfunction.