From ab5e9fee9de95eedf617dd22a741bc3067e4aaa2 Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Sat, 25 Jan 2025 21:42:52 +0100 Subject: [PATCH] refactor body styles in style.css for improved layout and visual consistency --- style.css | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/style.css b/style.css index 35770cc..96600ef 100644 --- a/style.css +++ b/style.css @@ -1,15 +1,19 @@ body { font-family: sans-serif; - margin: 20px; - background-color: #f0f0f0; - background-image: linear-gradient(to bottom right,#8a09e0, #9909e0, #a809e0, #b709e0, #c709e0, #d609e0, #e509e0, #f409e0, #ff09e0); + margin: 0; /* Remove default top and bottom margins */ + padding: 0; /* Remove default top and bottom padding */ + height: 100vh; /* Set body height to 100% of viewport height */ + display: flex; /* Use flexbox for better layout control */ + justify-content: center; /* Center the content horizontally */ + align-items: center; /* Center the content vertically */ + background-image: linear-gradient(to bottom right, #8a09e0, #9909e0, #a809e0, #b709e0, #c709e0, #d609e0, #e509e0, #f409e0, #ff09e0); + background-size: cover; /* Cover the entire viewport with the gradient */ } .container { max-width: 800px; - margin: 0 auto; padding: 20px; - background-color: #f8f8f8; + background-color: #fff; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 255, 255, 0.2); }