From f1b53c7bdd2c825e77c55089af586beac3e5b7c0 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Sat, 23 Dec 2023 02:07:30 -0500 Subject: [PATCH] thonk --- styles/style.css | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/styles/style.css b/styles/style.css index 331d98f..9ddddbb 100644 --- a/styles/style.css +++ b/styles/style.css @@ -2455,29 +2455,34 @@ textarea.form-control { .brand-list { display: flex; flex-wrap: wrap; + align-items: stretch; + justify-content: flex-start; margin-right: -5px; margin-left: -5px; } + .brand-list .single-brand { - flex: 0 0 24%; - max-width: 24%; + flex: 1 1 auto; + max-width: calc(20% - 10px); + box-sizing: border-box; padding-left: 5px; padding-right: 5px; - display: inline-block; + display: flex; + justify-content: center; + align-items: center; margin-bottom: 50px; } + .brand-list .single-brand a { - text-align: center; - position: relative; - transition: all 0.6s ease; - height: 100px; - width: auto; + display: block; + width: 100%; overflow: hidden; } .brand-list .single-brand a img { - height: 100%; + max-height: 100px; width: auto; + max-width: 100%; object-fit: contain; }