[jQuery] Re: Same code structure to affect two elements, but one doesn't work

2008-04-08 Thread Cristian
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.

[jQuery] Re: Same code structure to affect two elements, but one doesn't work

2008-04-08 Thread marr.adam
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