How do I make CSS underline just the "Logout" text, and not the i class? Like excluding…
- User
How do I make CSS underline just the "Logout" text, and not the i class? Like excluding anything with q-icon as a class?
logoutLogout
- Assistant
To achieve this effect, you will not modify the HTML structure but will use CSS to underline only the specific text ("Logout") while excluding any child elements like the tag containing the . There isn't a direct CSS property that applies styles exclusively to text nodes without affecting child elements. However, you can use a workaround to achieve the desired visual effect.