From 863f4b8a48702be19b0ae2a0c64225ac21209d79 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 28 Jun 2025 12:04:25 +0800 Subject: [PATCH] feat: center align content in index page --- src/index.html | 16 +++++++++------- src/style.css | 9 +++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/index.html b/src/index.html index 9d7cdd9..8b1d2fe 100644 --- a/src/index.html +++ b/src/index.html @@ -6,12 +6,14 @@ -

hi! im rafiq.

-

i'm a developer and avid self hoster. here's my links:

- blog - github - ig - linkedin - reddit +
+

hi! im rafiq.

+

i'm a developer and avid self hoster. here's my links:

+ blog + github + ig + linkedin + reddit +
diff --git a/src/style.css b/src/style.css index 1bee9c0..329eed9 100644 --- a/src/style.css +++ b/src/style.css @@ -2,3 +2,12 @@ body { background-color: black; color: white; } +div.container { + margin: 0; + text-align: center; + position: absolute; + top: 50%; + left: 50%; + -ms-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); +}