When hover different typography
-
wrote on Mar 11, 2021, 11:24 PM last edited by
HI!
I'm trying to change my text style into italic when hovering in it.
I have a custom css in my website that change all the links into italic when hovering in them, and works perfect:
.text a:hover {
font-style: italic; !Important;
color: #000000;
}but in this page :
https://www.griseldaduch.com/archive-list
I want some links to remain normal style
when hovering on "Interiors" and "Personal" I need "Interiors" to remain normal not italic.
How to adjust text styles when hovering in them only in some words?
Thanks in advance
-
Dear @gridch
If you just want 'Interiors' to remain normal you can target it with one of its data attributes :
[data-title="Interiors"]:hover { font-style: normal !important; }
Hope this helps & best wishes
Richard
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it