Set html tags style dynamically using javascript

Had a probelm to find css attribute to js mapping. So here it is.

document.getElementById(id).style.<check the table for a proper fieldname>

CSS Attribute to JavaScript Reference CSS Property JavaScript Reference background background background-attachment backgroundAttachment background-color backgroundColor background-image backgroundImage background-position backgroundPosition background-repeat backgroundRepeat border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-style borderBottomStyle border-bottom-width borderBottomWidth border-color borderColor [...]