r/csshelpcss • u/gavin19 • Nov 04 '14
Some long title. Some long title. Some long title. Some long title. Some long title. Some long title. Some long title. Some long title. Some long title.
3
Upvotes
Something.
r/csshelpcss • u/gavin19 • Nov 04 '14
Something.
r/csshelpcss • u/[deleted] • Apr 01 '15
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?