From eed9ef9bd272ea23bc5051eaa9383f3787037dc7 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 18 Oct 2022 11:55:11 +0100 Subject: [PATCH] Add menu css file --- new_index.html | 1 + style/new_menu.css | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 style/new_menu.css diff --git a/new_index.html b/new_index.html index 205541a..972a35e 100644 --- a/new_index.html +++ b/new_index.html @@ -7,6 +7,7 @@ + Home diff --git a/style/new_menu.css b/style/new_menu.css new file mode 100644 index 0000000..445fd7a --- /dev/null +++ b/style/new_menu.css @@ -0,0 +1,16 @@ +.menubar { + background-color: darkslategrey; + color: azure; + position: fixed; + top: 0; + left: 0; + width: 100%; +} + +@media screen and (min-width: 800px) { + .menubar { + position: -webkit-sticky; + position: sticky; + top: 0px; + } +} \ No newline at end of file