I made a text block in the link block and put the text in it. If you don’t click it, the background color is white, the text is black / If you click it, I hope the background color is black and the text is white. However, the current class is applied only to link block, so only the background color changes when clicking, and the color of the text does not change. I’ve thought of two solutions, please let me know if you know about them.
Is the current class applicable to multiple?
Is it possible to add text without adding text block to link block?
Don’t set the text color on the text, set it on the link block instead. This will be inherited by the text. This way Current can change the text color from black to white.
Or, you can make style changes to elements within a current element using custom CSS
Depending on your HTML, this would look something like;
<style>
.my-nav .w--current div {
color: white;
}
</style>
I’m trying to apply the css code. What does “my-nav” mean among the codes you gave me? Attached is a picture that means there is text in the current link block and a picture about the class of link block. Thank you for your reply.:)
This is a tabs element?
Tough to guess this from your original post, but should work the same.
.my-nav is whatever the class is of that containing element.
You need to look at your source but it will be something like .tabs-div or .tabs-menu-wrapper perhaps.