From 697963c5e4f56f871d4364043af450af6b6a2f9d Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 30 Dec 2020 23:28:24 +0100 Subject: Fix dropdown position Make sure it starts below the li's padding area, so that it lines up with colored backgrounds. --- commun.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'commun.css') diff --git a/commun.css b/commun.css index c9b8242..9556292 100644 --- a/commun.css +++ b/commun.css @@ -65,6 +65,10 @@ nav > ol { nav > ol > li { flex: 1; +} + +nav > ol > li > a { + display: block; padding: 0.5em 0.1em; } @@ -74,7 +78,6 @@ nav li.dropdown { nav li.dropdown ul { display: none; position: absolute; - left: 0; /* Offset nav > ol > li padding. */ padding-left: 0; width: 100%; text-align: left; -- cgit v1.2.3