I'm currently working on a project and I've run into an issue where the CSS gets messed up when I resize the window. I'm struggling to make it responsive while still maintaining the desired look.
Even after switching to rem units, the problem persists.
Here is the CSS code snippet:
color: whitesmoke;
}
p{
text-align: center;
font-size: 15px;
font-family: 'Source Sans Pro', sans-serif;
}
#space_background{
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
z-index: -1;
min-height: 100%;
}
h1{
position: relative;
z-index: 1;
text-align: center;
font-size: 3vw;
font-family: 'Source Sans Pro', sans-serif;
}
... (CSS Code continuation) ...
And here's the HTML part:
<html>
<head>
<!–– Head Section Content ––>
</head>
<body>
<!–– Body Section Content ––>
</body>
</html>
Everything looks perfect in full resolution but falls apart when resizing the window.