Use group-hover state
- Add group class to your parent element (anchor-tag in your case)
- Replace
hover:
withgroup-hover:
Worth to mention not every property supports group-hover, so there can be situation, where you may need to extend core plugins. More info about group-hover here
Related Contents:
- Common Web UI Styles
- How to use calc() in tailwind CSS?
- Tailwindcss: fixed/sticky footer on the bottom
- Align HTML input fields by : [duplicate]
- How to fill the height of the viewport with tailwind css
- What is the difference between push and offset under the grid system?
- How to use CSS variables with Tailwind CSS
- CSS AutoComplete font size [duplicate]
- How to use :not() in tailwind.css
- Click through div to underlying elements
- How to remove focus border (outline) around text/input boxes? (Chrome) [duplicate]
- How to add fonts to create-react-app based projects?
- Using only CSS, show div on hover over another element
- What is WebKit and how is it related to CSS?
- Margin-Top not working for span element?
- Multiple font-weights, one @font-face query
- Prevent flex items from overflowing a container
- How is the “greater than” or “>” character used in CSS?
- IE7 Z-Index Layering Issues
- CSS: 100% font size – 100% of what?
- Can I make dynamic styles in React Native?
- angular 2 ngIf and CSS transition/animation
- How do I use /deep/ or >>> or ::v-deep in Vue.js?
- Using Font Awesome icon for bullet points, with a single list item element
- Is there any “font smoothing” in Google Chrome?
- How to transition CSS display + opacity properties
- CSS: transition opacity on mouse-out?
- Customizing Bootstrap CSS template
- How to apply specific CSS rules to Chrome only?
- Possible to use border-radius together with a border-image which has a gradient?
- Split Div Into 2 Columns Using CSS
- Background color in input and text fields
- how to rotate text left 90 degree and cell size is adjusted according to text in html
- Aligning text and select boxes to the same width in CSS?
- White space around css3 scale
- Simple CSS Animation Loop – Fading In & Out “Loading” Text
- CSS Selector for nth range?
- How to use border with Bootstrap
- How to center multiple inline-block elements with CSS?
- Can I animate absolute positioned element with CSS transition?
- How to show full height background image?
- Gradient text color
- Speech bubble with arrow
- CSS: Margin-top when parent’s got no border
- Overlay a background-image with an rgba background-color
- I need list of all class name of Font-Awesome
- How to center HTML5 Videos?
- Forcing label to flow inline with input that they label
- Bootstrap3 .visible-* .hidden-* display inline
- All media queries for iPhone 13 (Pro, Max, Mini) and older iPhones