I was so into learning JQuery when this happened that I thought the
problem was caused by my lack of knowledge of JQuery. I never thought
CSS specificity could be involved.
Thank you so much for your help.
I think css precedence has got you down. As I remember it, ID
selectors override class selectors (since id is more specific than
class). Try using border: 3px solid red !important; or maybe the
change the css selector to div.maindiv-hover { ... } and see if this
fixes your problems. Look up css
2 matches
Mail list logo