I am currently developing a website using Bootstrap 5, HTML, and CSS. I've encountered an issue where the columns in the footer don't align properly when the screen size is reduced. Surprisingly, the columns line up correctly on mobile-sized and desktop-sized screens, but not on tablet-sized and laptop-sized screens.
Here's how the tablet-sized screen appears https://i.sstatic.net/uZN0F.jpg
This is what the desktop-sized screen looks like https://i.sstatic.net/jECyN.jpg
Test.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home | </title>
<link rel="stylesheet" href="/_bridgetown/static/css/main.c7d4dd3f1984a290e9be.css" />
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="23414c4c57505751425363160d100d13">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet">
...
<footer a {
color: hsl(0, 0%, 100%);
text-decoration: none;
}
@media screen and (min-width: var(--mobile)) and (max-width: var(--tablet)) {
...
}
@media screen and (min-width: var(--tablet)) and (max-width: var(--laptop)) {
...
}
@media screen and (min-width: var(--laptop)) and (max-width: var(--desktop)) {
...
}