-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make border utilities hoverable #67
Comments
I think we can have most of the utilities be combined with |
Border colors are hoverable which might be enough for your situation. How does this work for you? <a href="#" class="no-underline border-b hover:border-transparent">Text link</a> This is how I usually handle these sorts of things, because otherwise introducing a border when it wasn't there before can shift the content around. |
@adamwathan Yeah, you're right, It's work exactly that I want. |
How can we achieve this " border bottom 2px solid on hover" in Tailwindcss? do we have to add such a code to config file? cheers |
I'm also trying to get a border bottom on hover, this doesn't apply any of the hover classes, why?
|
to @mooijtech and future clicks
also note that, for my example, you need to edit your config
|
Per Tailwindcss default variants reference we can enable more variants to support the utilities we want by configure in tailwind.config.js Example configuration for support
Add more pseudo class
|
first set border then set opacity 0 and on hover:set opacity 100, so problem solve on hover set border. |
Hello all!
Just tried TailwindCSS and It's perfect, but I think that borders should be able to be combined with
hover:
preffix.Here is sample. Task make link underline dashed:
<a href="#" class="no-underline border-b hover:border-b-0">Text link</a>
Similar approach with manipulating borders are used on https://laravel.com/ nav menu
The text was updated successfully, but these errors were encountered: