From 44a69d1796914a6653b35d19e591a856da16dfd3 Mon Sep 17 00:00:00 2001 From: core Date: Tue, 13 Jun 2023 17:39:00 -0400 Subject: [PATCH] implement nav pt3 --- nav.css | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nav.css b/nav.css index 53eb874..f903bac 100644 --- a/nav.css +++ b/nav.css @@ -9,18 +9,18 @@ body > * { } #main { - /*position: absolute; + position: absolute; top: 0; - left: 192px;*/ + left: 192px; width: calc(100% - 192px); } #nav { width: 192px; background-color: #cccccc; - /*position: fixed; + position: fixed; top: 0; - left: 0;*/ + left: 0; } .nav-item { @@ -39,7 +39,7 @@ body > * { .nav { width: 100%; } - +/* @media only screen and (min-width: 576px) { #nav { position: fixed; @@ -53,8 +53,11 @@ body > * { } } + */ + @media only screen and (max-width: 576px) { #main, #nav { + position: initial; width: 100%; } } \ No newline at end of file