I'm encountering an issue with a button that says Upgrade my account
.
My goal is to have different text for screens smaller than 990px, where it should display just Upgrade
due to length constraints.
Is there a CSS solution to achieve this without having both versions in the HTML and using display: none
?
I attempted to resolve it with:
@media(max-width: 990px) {
.navbar-btn {
content: 'Upgrade'
}
}
Unfortunately, this approach did not produce the desired outcome...
Any assistance would be greatly appreciated!