Learn Accessibility by Building a Quiz - Step 48

Tell us what’s happening:

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Learn Accessibility by Building a Quiz - Step 48

Link to the challenge:

Hi everyone,

please am stuck here and am getting more confused trying to solve the problem.
Can anyone help out please.

This is my code:

header {
  width: 100%;
  height: 50px;
  background-color: #1b1b32;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  margin-top: 0;


}

You have added margin-top instead of just top.
There is no any requirement for setting up the margin.

As other mentioned, just use

top: 0;

instead of

margin-top

Aside this, there’s an error with the css styling that makes the “Student Info” text disappear when using

position: fixed;

Edit: when going to the next step, they make you correct the missing text hahaha :sweat_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.