diff --git a/static/factoring.html b/static/factoring.html index 2d41d7f..9a7a360 100644 --- a/static/factoring.html +++ b/static/factoring.html @@ -93,21 +93,22 @@ } .problem { - display: flex; + display: grid; + grid-template-columns: 22px 4.4em max-content auto; align-items: baseline; - gap: 6px; + column-gap: 6px; font-size: 1.2rem; font-weight: 700; padding: 7px 4px; border-bottom: 1px solid #e0e0e0; } .prob-num { - min-width: 26px; font-size: 0.78rem; font-weight: 800; color: #999; - flex-shrink: 0; } + .lhs { text-align: right; } + .rhs { text-align: left; } .answer-line { border-bottom: 2px solid #111; min-width: 34px; @@ -222,23 +223,24 @@ function renderProblems() { // Part I - Factor: given a + b, write the factored form const partA = genUnique(PER_PART).map((t, i) => `