I'm trying to set a margin-left using a variable in JavaScript. Is this possible? How can this be done?
The margin left needs to be the clientWidth of the text:
var hoverBubble = document.getElementById(id);
var linkWidth = link.clientWidth + 1;
hoverBubble.style.margin-left = linkWidth + 'px';