From 63d223b4d6bdce049de28911fcb3b341a2efbb4c Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Sun, 12 Apr 2026 11:04:28 +0000 Subject: [PATCH] Try it as a background image --- frontend.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend.html b/frontend.html index 2a887b0..07777d3 100644 --- a/frontend.html +++ b/frontend.html @@ -14,7 +14,7 @@ overflow: hidden; zoom: 1; } - img { + .img { max-width: 100%; max-height: 100%; width: auto; @@ -23,7 +23,9 @@ cursor: pointer; margin-left: auto; margin-right: auto; - background: #1a1a1a; + background-image: url($img_url); + background-size: cover; /* Important for proper scaling */ + background-position: center; } .chevron { position: absolute; @@ -55,7 +57,7 @@
- +
$play_button