Hello everyone.
And welcome back.
In today's video we learn more about this position rounds.
Let's talk about this issue.
Things are actually more aligned with the position race is relative to the meanest extreme element.
So it stays in the same position even in your on the beat.
Let's say you want to make this no fixed on the dock of the beach.
So even the new slogan should stay there.
So let's find out.
Let's bring in my good Adam so this is like over.
So let's give it a position.
Say things let's fix it.
I top zero and left zero.
Let's say that.
And now let me scroll.
I got Burroughs face on the door.
Similarly let's say you want to fix this.
Except to keep on opening on the bottom right of the screen.
So let's do that let's be not good at it so this is makes it easy.
Main def so let's make it position.
Waist let's say right.
Zero.
Let's say that as you can see now it's on the right hand side of the screen let's make it bottom zero.
Let's see the.
As you can see now that fixed on the bottom right of the screen.
So that's how this position creates works.
Moving on to the next one which is sticking the position stick it can be explained as a mixed sex position
relative and position weights.
It behaves like a position runner until a declared point and after that it changes its behavior to position
fixed.
Let's try an example on this on anybody.
So right now as you can see even new school this image scrolls to the bottom was out so let's see what
we want is to scroll this next to the Gulf and then make it fixed here so 60 pixels below that number.
So let's try that.
So let's bring up a good editor.
All right.
So an index etching.
Let's get this an idea Monday.
Image 1.
So coming here let us just copy this place did Europe make it mountain image 1.
Let's save it.
Now let's try an immediate position.
Sticking as you can see nothing is happening right now.
All right.
So as I mentioned earlier explains deleted the understood and the commission is made.
So let's give it a condition.
Say talk to the height of icon by 62 pixels and you want this to stop 66 below.
So that could be around 70 pixels.
So that's your style now if you try to slow it goes to the top and then stops scrolling so that's how
this position to works.
That's also the day I ask if there's something that you do not understand.
Feel free to comment on Google discuss it.
See you in the next video by Andy.