Hi, @catra. I had a look at your stylesheet and while I’m not seeing the white on the bottom unless I try to scroll past the end of the page, I wonder if the problem might not be with your CSS linear gradient background. You’re applying it to the main
element instead of to body
, but body
is the part of your web page that gets displayed. If there’s something after main
inside body
, the background won’t be applied to it.
Also, you might be trying to micromanage your layout by your use of Flexbox everywhere. I also noticed that you seem to be using grid-row
and grid-column
in selectors that don’t have a parent set for display: grid
. Instead, you’re mainly using Flexbox. That might be causing some of your problems, too.
Also, it looks like you’re using rem
units to set the font size in your headers and paragraphs without setting the font size of your root element.
Adding the following should make your rem sizing work as intended, because <html>
is the root element of every web page. Setting that element’s font size to “medium” means it will use the browser’s default font size, and honor the user’s settings if they’ve changed it to something other than 16px.
html {
font-size: medium;
}
However, you’re also using pixel sizing for headers and paragraphs, and the way CSS works is that if you have two rules for the same selector the second one takes precedence. Here’s an example:
p {
font-size: 1.2rem;
}
p {
font-size: 16px;
}
You’re setting the font-size for the paragraph (<p>
) element twice, and the second setting is an absolute size in pixels, so the font size is stuck at 16px no matter what you do with the root element’s font size or what relative size you use earlier in the stylesheet.
Worse still, you’re using rem
units, em
units, and pixels to size various elements in your stylesheet. My advice to you is to pick a unit and use it consistently. Use rem
, em
, or px
, but don’t mix them.
PS: You’re welcome to take a look at my stylesheet and see if there’s anything in there you can use. I’ve put a fair amount of work into my site’s typography because my site is extremely text-heavy and I want it to be readable. Some of the stuff I did for font stacks and font sizing might work for you, too. If you have further questions, feel free to ask them in this thread. I’ll answer them if I can, time and knowledge permitting.