Bug or a mistake? Help xD

Hello guys, new here.

So i’m in second lesson about offset’s and in my problem say’s something like this:

’ and offset it 0 pixels from the top and 0 pixels from the left

Offset for what i learn is allways moving the opposite side right?

So i put:

bottom: 0px;
right: 0px;

Wrong!

the correct soluction for FCC is:

top: 0px;
right: 0px;

Well, what i do wrong? I really didnt understand? Or is a simple mistake?

Thank you everyone!
PS: sorry for my english

Hey @mrspoonn!

Welcome to forum!

When you have questions about a challenge you can use the ask for help option.

ask for help

But since you already started this topic it would really help us out if you could provide us with the link to problem you are referring to. It sounds like you are somewhere in the applied visual design section.

I don’t know which challenge you’re referring to, but this is how it works in principle:

bottom: 0px --> positions an element 0px away from the bottom

Hi @mrspoonn, welcome to FCC forums!

I think you are doing this lesson, maybe I am wrong? https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets. There are a few lessons like this, so can you point us at the one you are working on?

Sorry guys for this basic post.

I find the problem, and for suprise i tried to solve again and guess what?

Today the code was:

top: 0px;
left: 0px;

I think is a bug.

Link: https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/lock-an-element-to-the-browser-window-with-fixed-positioning

Offset means to move away from something. So if the instructions say “offset it 0 pixels from the top” that means you start at the top and move 0 pixels away from the top (i.e. toward the bottom). So in your CSS you would use the top property and then the number of pixels you set for top would be the number you move away from the top (0 in this case). So the correct answer would be

top: 0;

In CSS, the value you give top is the offset. This works the same for the CSS properties bottom, right, and left;