diff options
-rw-r--r-- | css/style.css | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/css/style.css b/css/style.css index dac691e..bfcc57d 100644 --- a/css/style.css +++ b/css/style.css @@ -15,6 +15,9 @@ body { #nav { display: flex; + position: sticky; + top: 0; + align-self: flex-start; /* makes flex element only as vertically large as needed for sticky */ flex-direction: column; width: 12rem; padding: 1rem; |