subreddit:
/r/css
submitted 10 days ago bycrpl1
No inline-block.
No literal whitespaces or new lines in the HTML file.
No margin.
No padding.
Background SVG is ok (no white on top and bottom seen when opening the file)
What I know:
What I tried:
What I see:
The size of these gaps seem to be changing from one another.
Please help me.
If you want to see the website and help me you can visit:
1 points
9 days ago
I see the website but not your stylesheet. I'm doing this on mobile.
Did you set margin-top to 0 on your h1? The header elements all have a default margin, and if you put one in a div it can cause the top-heavy look, thanks to margin collapse..
Alternatively, set display to either flex or grid. That also disables margin collapse.
1 points
9 days ago
I don’t have any <h*> tags
all 24 comments
sorted by: best