تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

Using Tailwind Sticky1:59

It remains until the end of its container. So let's see. Right here, it will remain until the bottom of its container. And then H takes over. Okay. Sounds like this is really easy. So with Tailwind, we can use a class of sticky, or again, I use a prefix with Tailwind. So I would do TWSticky. Now an important thing to note, this will be available as of Tailwind 0.5, I think it is.

Adding Top Offset2:19

Now an important thing to note, this will be available as of Tailwind 0.5, I think it is. So if you're trying this out with me and it's not working, yeah, you might need to update Tailwind. Now, again, just because we add that doesn't mean it's going to work. So if I come back, give it a refresh and scroll, nothing happens here. And that's because once again, without some kind of coordinate, it will behave as a relatively positioned element. So let's pin it to the top. And that's the equivalent of saying top: 0.

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟