From 4c20a62b99eda40e811d7aadb0c10aba349d60e9 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 28 Nov 2023 09:54:29 +0100 Subject: [PATCH] table image formatting --- includes/styles.css | 6 ++++++ index.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/styles.css b/includes/styles.css index d04679e..fa2fc1e 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -13,6 +13,12 @@ body { -o-background-size: cover; background-size: cover; } +.table-image { + max-height: 100px; + max-width: 150px; + width: auto; + height: auto; +} nav { background: linear-gradient(to right, #FF416C, #FF4B2B); diff --git a/index.php b/index.php index c116f5a..59cda3f 100644 --- a/index.php +++ b/index.php @@ -110,7 +110,7 @@ $lastMatches = array_slice($allMatches, 0, 8); $subTier = $rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['subTier']; $image = "./images/ranks/" . $tier . "-" . $subTier . ".png"; $rankPoint = htmlspecialchars($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentRankPoint']); - echo "name" . htmlspecialchars($value) . "" . $rankPoint . ""; + echo "name" . htmlspecialchars($value) . "" . $rankPoint . ""; } else { echo "name" . htmlspecialchars($value) . ""; }