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