Strange little snafu. I am using jQuery .css() method to resize text (long story, no, I can not use media queries) using a variable and I need to add em to it. I'm not sure what the syntax is, because there are several meanings for modifying CSS.
To illustrate:
It works great. It adds em to the computed victore value:
$('h1').css('font-size', victore + 'em');
It does not mean:
$('h1').css({ 'font-size':victore + 'em', 'line-height':vignelli + 'em'; });
em needs quotes ... but so does the value. Wrapping it in parens did not work
javascript jquery syntax css
technopeasant
source share