From be1921255713688263ba18d4e7a92b9dc3156a9d Mon Sep 17 00:00:00 2001 From: hasparus Date: Tue, 30 Oct 2018 09:48:50 +0100 Subject: [PATCH] Center dropdowns --- index.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.css b/index.css index 154e1027..ae5fa4c2 100644 --- a/index.css +++ b/index.css @@ -846,14 +846,17 @@ div.slider .ui-slider-handle { } .dropdown { - display: inline-block; - /* todo: float: left? */ + display: block; + float: left; + position: relative; } .dropdown__options { display: none; position: absolute; + left: 50%; top: 100%; + transform: translateX(-50%); border: 1px solid #5e4fa2; background-color: #a4879b; width: 44px;