diff --git a/js/categoryjs.js b/js/categoryjs.js index 508f7d4e..22eeae94 100644 --- a/js/categoryjs.js +++ b/js/categoryjs.js @@ -7,13 +7,15 @@ document.addEventListener("DOMContentLoaded", function () { const icon = document.createElement("img"); icon.src = "img/" + categoryData.icon; + icon.style.display = "block"; + icon.style.margin = "auto"; const nameLink = document.createElement("a"); nameLink.href = categoryData.name + "-/"; //find index.html nameLink.textContent = categoryData.name; const name = document.createElement("span"); - name.appendChild(document.createElement("br")); + // name.appendChild(document.createElement("br")); name.appendChild(nameLink); categoryItem.appendChild(icon);