I was working on a chrome extension that displays icons on a blank tab using JavaScript. Here are the relevant code snippets:
HTML:
<div id="icons" class="icons"></div>
Javascript:
function addIcons() {
for (var i = 0; i < iconArray.length; i++) {
var link = document.createElement('a');
link.href = linkArray[i];
var icon = document.createElement('img');
icon.src = "images/" + iconArray[i];
icon.title = titleArray[i];
link.appendChild(icon);
document.getElementById('icons').appendChild(link);
}
document.getElementById('icons').style.borderBottom="2px solid blue";
}
The issue I'm facing is that the border is displaying above the icons instead of below them. Can anyone provide guidance on how to achieve the desired layout?