در حال بارگذاری ...

Hover Border Styling2:55

But now we only want to see this background in the border when the user hovers over it. So we could say hover, and I hope we can do borders on hover, is that something? No. I guess that's turned off by default. Let's see, Tailwind, CSS, border, can I look for variants? Border width, oh, you know what, we probably wouldn't want to do that because it might make it jump, so let's do this instead. Border opacity zero, but when you hover, could we do something like that? Yeah, and now we don't get any kind of, sometimes you add a single pixel and it'll push the text around or things like that.

Layout and Positioning Setup11:25

So again, this should be its own component as well. All right, we'll probably have to tweak that, but let's have a look. Okay, immediately a bunch of things we can do here. So we're going to set a positioning context here. But now that div still wants to take up all of the available space, right? Let's give it a maximum width of extra-small, set the margins to auto, maybe display a flex, and then a couple other things. Okay. Okay, so first up, I guess this would go, hmm, actually maybe flex should go here, class.

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