From c91862744b0f9db1b46f88e1396a42e1c5cbb0da Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Sat, 20 Nov 2021 22:54:11 +1100 Subject: [PATCH] Add css for logo aspect-ratio --- index.html | 3 +++ index.svg | 3 +++ 2 files changed, 6 insertions(+) diff --git a/index.html b/index.html index 5dd71ab..a189a9d 100755 --- a/index.html +++ b/index.html @@ -22,6 +22,9 @@ img { width: 25%; /* Image width */ border: 0; /* For IE */ + /* Aspect ratio of image, gives initial dimension to prevent text moving down once image is loaded */ + /* When changing logo, change this also */ + aspect-ratio: 125 / 50; } #main { vertical-align: middle; diff --git a/index.svg b/index.svg index f45318a..cbdde44 100755 --- a/index.svg +++ b/index.svg @@ -19,6 +19,9 @@ img { width: 25%; /* Image width */ border: 0; /* For IE */ + /* Aspect ratio of image, gives initial dimension to prevent text moving down once image is loaded */ + /* When changing logo, change this also */ + aspect-ratio: 125 / 50; } #main { vertical-align: middle;