commit 09379d00c306e668db722a2d3657d47400d2bf7b parent 376f844cc04a91aae3efd91fbeed15ec17cd5288 Author: ugrnm <ultrageranium@bleu255.com> Date: Sat, 14 Sep 2024 22:51:11 +0200 centering and aspect ration friendly resize Diffstat:
M | www/style.css | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/www/style.css b/www/style.css @@ -4,6 +4,10 @@ } img { - width: 100%; + margin: auto; + position: absolute; + top: 0; left: 0; bottom: 0; right: 0; + max-width: 100%; + max-height: 100%; }