From 1f4d61850e8e2b1a4f6d1e1bed5919e6f8791c94 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 7 Nov 2022 14:52:31 +0000 Subject: [PATCH] Use CSS to align --- web_editor/js/cards.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_editor/js/cards.js b/web_editor/js/cards.js index f416aad..1034be5 100644 --- a/web_editor/js/cards.js +++ b/web_editor/js/cards.js @@ -12,7 +12,7 @@ export function makeLaneCard(lane, idx, app) { node.appendChild(wrapInCenterDiv(width(lane))); var editRow = document.createElement("div"); - editRow.align = "center"; + editRow.style = "text-align: center"; var left = iconObj("left"); if (idx != 0) { @@ -118,7 +118,7 @@ function backgroundColor(lane) { function width(lane) { var div = document.createElement("div"); - div.align = "center"; + div.style = "text-align: center"; if (lane.width) { div.innerText = `${lane.width}m`; } @@ -145,7 +145,7 @@ function iconObj(name) { function wrapInCenterDiv(obj) { var div = document.createElement("div"); - div.align = "center"; + div.style = "text-align: center"; div.appendChild(obj); return div; }