I'm having trouble adjusting the font size using a variable in my code. Can anyone pinpoint the issue?
<div id = "letter">
<span>A</span>
<span>l</span>
<span>p</span>
<span>h</span>
<span>a</span>
<span>b</span>
<span>e</span>
<span>t</span>
<div>
var list = document.getElementsByTagName("span");
var size = 20;
for (i=0; i<list.length; i++) {
size+=5;
list[i].style.fontSize = "sizepx";
};
alert(list.length);