From 44a8345736fd05dc8d2d5e08f50be77b3e98708a Mon Sep 17 00:00:00 2001 From: siddhant-2002 Date: Sat, 15 Jun 2024 17:12:23 +0530 Subject: [PATCH] images position fixed position of images inside category is changed --- js/categoryjs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);