From 7c79b7cd8377980d1b359f46bdc02c20f395f82e Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:34:07 +0800 Subject: [PATCH] Refactor background image --- blog/css/style-blog.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blog/css/style-blog.css b/blog/css/style-blog.css index 920fbf21..5c9438d4 100644 --- a/blog/css/style-blog.css +++ b/blog/css/style-blog.css @@ -80,11 +80,11 @@ select { /* General styles */ body { background-color: black; - background-image: url('../img/bg_space.png'); - background-position: center; - background-repeat: repeat-x; + background: url('../img/bg_space.png') no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; background-size: cover; - background-attachment: fixed; font-size: 1.3rem; font-family: 'Noto Sans', Arial, sans-serif; min-height: 100vh;