From 5865ecbb1b2b50e2242d8d84aaf0eb01338c4b47 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 9 Jan 2023 14:53:29 -0800 Subject: [PATCH] use btn-group class for nav bar Signed-off-by: Arthur Lu --- css/style.css | 24 +++++------------------- index.html | 6 +++--- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/css/style.css b/css/style.css index 224b361..3c1a215 100644 --- a/css/style.css +++ b/css/style.css @@ -64,29 +64,15 @@ p { background-color: #008800; } +.btn-group button.active { + background-color: black; + color: white; +} + nav { background-color: #00ff00; overflow: hidden; margin-left: auto; margin-right: auto; width: fit-content; -} - -nav a { - background-color: #00ff00; - float: left; - color: black; - text-align: center; - padding: 8px; - text-decoration: none; -} - -nav a:hover { - background-color: #008800; - color: white; -} - -nav a.active { - background-color: #008800; - color: white; } \ No newline at end of file diff --git a/index.html b/index.html index 651afec..a816ced 100644 --- a/index.html +++ b/index.html @@ -10,9 +10,9 @@
-