Step 51 in Learn more about CSS Pseudoselectors by building a balance sheet

I am having trouble with step 51 here. I can’t figure out what I’m doing wrong.

Here is my code and the instructions. What am I missing? This code is definitely doing something. When it runs, it seems to do what the instructions are asking for.

Step 51

Now give the captions an absolute position, and shift them -2.25rem from the top and 0.5rem from the left.

table caption {
  color: #356eaf;
  font-size: 1.3em;
  font-weight: normal;
  position:absolute;
  margin-top:-2.25rem;
  margin-left: 0.5rem;}

when i run it, says this:

Test

Sorry, your code does not pass. Hang in there.

Hint

Your table caption selector should have the top property set to -2.25rem.

Is margin not the correct property to be using? it looks like it works in the preview.

top and margin-top are not the same property. It doesn’t say to use margin property there

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