From 29035a86be7189bda38fea861450afd06e2dea90 Mon Sep 17 00:00:00 2001 From: SeanAverS Date: Thu, 23 May 2024 23:49:21 -0700 Subject: [PATCH] Fix footer to mimic expected design (#40) --- css/footer.css | 51 ++++++++++++++++++++++++++++++++++++++++++++------ index.html | 14 ++++++++------ 2 files changed, 53 insertions(+), 12 deletions(-) diff --git a/css/footer.css b/css/footer.css index 3b4fcad..c19f436 100644 --- a/css/footer.css +++ b/css/footer.css @@ -1,20 +1,22 @@ footer { display: flex; - justify-content: space-evenly; padding: 20px; color: white; background: #212020; margin-top: auto; + width: 100%; + flex-direction: column; + align-items: center; } .additional { display: flex; flex-direction: column; flex-wrap: wrap; + text-align: center; } footer .f-ele1 { - margin: 1.4rem 0; border-radius: 8px; color: white; width: fit-content; @@ -35,13 +37,14 @@ footer .f-ele1 { } .f-ele2 ul { - + display: flex; + flex-direction: row; font-weight: bold; color: white; } -.f-ele2 ul span { +.f-ele2 span { color: white; font-size: 23px; @@ -109,6 +112,18 @@ footer .f-ele1 { line-height: 25px; } +/* copyright info styles */ +.f-ele4 { + margin-top: 20px; + display: flex; + justify-content: space-between; + align-items: center; +} + +#clg, #pp { + padding: 5px; +} + /* End footer */ /* Footer media queries */ @@ -138,7 +153,6 @@ footer .f-ele1 { @media (max-width:1095px) { footer { flex-direction: column; - gap: 32px; } .f-ele3 { @@ -146,4 +160,29 @@ footer .f-ele1 { align-items: center; text-align: center; } -} \ No newline at end of file +} + +/* prevent text from overflowing footer */ +@media (max-width: 611px) { + #clg, #pp { + font-size: 16px; + } +} + +@media (max-width: 501px) { + #clg, #pp { + font-size: 10px; + } +} + +@media (max-width: 329px) { + .f-ele2 ul li { + font-size: 13px; + } + + .f-ele2 ul { + flex-direction: column; + } +} + + diff --git a/index.html b/index.html index aeb3895..0439c50 100644 --- a/index.html +++ b/index.html @@ -570,14 +570,11 @@

Welcome to


-
Department of Artificial Intelligence, GHRCE
-
©2023 Jarvis
- + Quick Links
+ + +
+
Department of Artificial Intelligence, GHRCE
+
©2023 Jarvis
+