From 91acdabda05e7e0c34c1d29f2fba1783422579cb Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 28 Oct 2024 17:40:52 -0400 Subject: [PATCH] update --- public/css/styles.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/css/styles.css b/public/css/styles.css index 949d20c..0a396b9 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -238,3 +238,11 @@ p { ::-webkit-scrollbar-track { background-color: #121212; /* Color of the scrollbar background/track */ } + +/* Responsive Image Styling */ +img { + max-width: 100%; /* Ensures the image cannot be larger than its container */ + height: auto; /* Maintains the aspect ratio */ + display: block; /* Removes any inline spacing */ + object-fit: contain; /* Ensures the image scales within its container */ +} \ No newline at end of file