From 18c2e4b88bdb02a93420e4c5cfb2ce0b17279033 Mon Sep 17 00:00:00 2001 From: Wisdurm Date: Tue, 4 Nov 2025 12:10:26 +0200 Subject: [PATCH] Vihdoin toimii mobiililla --- css/style.css | 11 +++-------- public/index.php | 12 ++++++------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/css/style.css b/css/style.css index 2eac932..802eb72 100755 --- a/css/style.css +++ b/css/style.css @@ -47,18 +47,13 @@ tbody tr:nth-child(odd) { background-color: #eeeeee; } +thead tr th:nth-child(1), /* Siivoa jos osaat css */ 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%; @@ -92,9 +87,9 @@ header { .navigaatio nav{ display: flex; - flex-direction: row; justify-content: space-between; - min-width: 100vh; + flex-flow: row wrap; + max-width: 100%; } .navigaatio-osio { diff --git a/public/index.php b/public/index.php index 7b45ac5..231c31e 100755 --- a/public/index.php +++ b/public/index.php @@ -29,13 +29,13 @@ if ($result->num_rows>0){ Opiskelijat
+ + "; + } + ?>
- - "; - } - ?> -- 2.47.3