From 50cee32079f16c56630e4f0d2d734790901c60e8 Mon Sep 17 00:00:00 2001 From: Gijs van Dijck <31765316+gijsvd@users.noreply.github.com> Date: Thu, 2 Nov 2023 20:22:03 +0100 Subject: [PATCH] Update index.html --- Textbook/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Textbook/index.html b/Textbook/index.html index 6ae487b..ec86fde 100644 --- a/Textbook/index.html +++ b/Textbook/index.html @@ -23,6 +23,16 @@ flex: 0 0 250px; background-color: #f2f2f2; padding: 20px; + position: fixed; /* Set sidebar to fixed position */ + top: 0; /* Align it to the top of the viewport */ + left: 0; /* Align it to the left of the viewport */ + height: 100%; /* Make the sidebar cover the full viewport height */ + } + .content-container { + margin-left: 250px; /* Adjust margin to account for the fixed sidebar width */ + flex: 1; + background-color: #fff; + padding: 20px; } .main-content { flex: 1; @@ -111,7 +121,6 @@