From 4d812bc80b2686dd7ab84ab3efc20aa1c1409e14 Mon Sep 17 00:00:00 2001 From: Wisdurm Date: Tue, 4 Nov 2025 10:54:50 +0200 Subject: [PATCH] W.I.P position sticky --- css/style.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/css/style.css b/css/style.css index 023f3c0..2eac932 100755 --- a/css/style.css +++ b/css/style.css @@ -47,6 +47,19 @@ tbody tr:nth-child(odd) { background-color: #eeeeee; } +tbody tr td:nth-child(1) { + position: sticky; + left: 0; + z-index: 0; + background-color: var(--main-color) ; +} +thead tr th:nth-child(1) { /* Siivoa jos osaat css */ + position: sticky; + left: 0; + z-index: 0; + background-color: var(--main-color) ; +} + .table-container{ width: 100%; overflow-x: auto; @@ -66,6 +79,10 @@ footer{ text-align: center; } +header { + z-index: 10; +} + .navigaatio { background-color: white; position: sticky; -- 2.47.3