element.style.float="left";Solutions for this are dependent on the Browsers
cssFloat for Firefox, Opera, Safari & Edge
- Does DOM consists of what we are writing?
- Are we following naming convention matching to browsers DOM
element.style.padding="0px"; // started with small letter element.style.paddingLeft="0px"; //each pronounced word is capitalized
- Do we assign values as DOM is expecting from us?
style.width="100px" //valid style.width=100; //is invalid