From 0c62902d0c35dbf6c32985538355535e121402a3 Mon Sep 17 00:00:00 2001 From: DragunovVelimirovic <59807104+DragunovVelimirovic@users.noreply.github.com> Date: Tue, 29 Mar 2022 10:54:04 -0300 Subject: [PATCH] Pruning code by combining selectors Both selectors were doing the same thing and were right next to each other, figured it may be cleaner to consolidate the code by combining the selectors. --- grid/03-grid-layout-3/solution/solution.css | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/grid/03-grid-layout-3/solution/solution.css b/grid/03-grid-layout-3/solution/solution.css index 9221f1f..a720c82 100644 --- a/grid/03-grid-layout-3/solution/solution.css +++ b/grid/03-grid-layout-3/solution/solution.css @@ -143,13 +143,8 @@ gap: 50px; } -.photo { - display: grid; - align-items: center; -} - -.sidebar .side-content { - display: grid; +.side-content, .photo { + display: grid; align-items: center; }