From d6e93ae2f959129957447e5d5bb58e6c3f3c7f09 Mon Sep 17 00:00:00 2001 From: Shraddha <shraddharaghuram@student.tudelft.nl> Date: Wed, 21 Aug 2024 08:23:45 +0000 Subject: [PATCH] fixing 4th attempt --- static/navbar.css | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/static/navbar.css b/static/navbar.css index 7f18219..b01c2e1 100644 --- a/static/navbar.css +++ b/static/navbar.css @@ -132,12 +132,9 @@ body{ .my-navbar{ margin-top: 21px; } - .my-nav .icon{ - flex-basis: 150px; - margin-left: 5px; - background-position-x: -25px; - background-position-y: 5px; - background-size: 130%; + .my-nav .icon { + background-size: contain; /* Ensure the logo fits within the container */ + background-position: center; /* Center the logo within the container */ } .my-nav{ height: 70px; -- GitLab