- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Sorry I forgot my question. Can I change the top code to the bottom code anyway. Thanks
Not sure what it is you are asking!
Please clarify as your Codepen does not demonstrate any issue.
I want to take the word “Open” out and replace it with “fa-angle-left” instead. Thanks
So what is stopping you?
When and how do you expect to do this?
Sounds like you might need javascript…
It depends what the event is. Do you want to change it on click/hover/keydown?
An example of changing the content on a button click.
const button = document.querySelector('.buttonClass');
const label = document.querySelector('.labelClass');
button.addEventListener("click", () => {
label.classList.toggle(".is-active");
});
.is-active {
content: "fa fa-angle-left"
}