/r/csshelp
Read the FAQ before posting a question.
This subreddit is for help with CSS and questions only. If you only want to share your creations, please direct them to reddithax.
If you know of a guide that you feel should be listed here, message the moderators with a link.
/r/csshelp
First, code! (shortened for clarity)
HTML:
<ul>
<li><a href="about.html" disabled>About</a></li>
<li><a href="contact.html">Contact</a></li>
CSS:
a[href$=".html"]:disabled { background-color:#fff; }
The object of this is to make the specific link to turn white after it's selected, and prevent it from being clickable. However, that is not the case here. The color remains its original (which is orange) and I can still hover over it and click it.
Any suggestions, or am I using this particular bit of code incorrectly?
Something.
Sticky
Test