Ask Your Question
0

Fixed header problem.

asked 2020-05-28 17:48:09 -0500

I have made the first block to have margin-left: 100px; same as the main part, but the main part seems to be misplaced by a few pixels. When I try to write "margin-left: 0px" for the main part, it is visible that there's a gap on the side compared to the fixed header. What is the cause of this? Or better question, how could it be fixed?

https://codepen.io/Achriman/pen/ZEbdJ...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-28 17:55:06 -0500

OK, someone smart in our study group found out. Codepan has default body margin set to 8, so the fix is

body { margin: 0; }

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-05-28 17:48:09 -0500

Seen: 16 times

Last updated: May 28