Personal profile - failing test

My code [https://codepen.io/farooqumars/pen/ePzwOR] is getting failed on this test:

The height of the welcome section should be equal to the height of the viewport.

Though I have set: height: 100vh; but still it is giving error. Please help.

Remove border property from it.

1 Like

Hi,
I extended my code [https://codepen.io/farooqumars/pen/ePzwOR] a bit today but on saving, it started giving the same error again:

The height of #welcome-section is not equal to the height of the viewport : expected 578 to equal 577

I don’t know where it is having that 1px difference. Please help.

Not sure if you fixed it or what, but it passes the test for me. If you still have issues, maybe try a different browser.

What does running the two lines below in the console print out, run them one at a time (to get to the console, Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac)).

document.getElementById("welcome-section").offsetHeight

window.innerHeight