After restarting my laptop, everything was back to normal. Thank you for the help and replies.
The issue I'm facing is with two identical pages that have the same code. The only difference between them is the file names - index and index2. However, for some unknown reason, the header div on the "index" page appears smaller than the one on the "index2" page, despite there being no apparent differences between them.