Fri, 2005-07-15 21:29
Im relatively new to css (i've been creating pure css layouts for about a week and loving it!) and im just wondering about some of the do's and donts when it comes to cross-browser compatibility
at the moment im using !important to target non-IE browsers ... is this the smart thing to do ? - i've seen the use of the parent/child selector ( ul > li ) to achieve the same result - but im not sure which is more correct in terms of development...
anyone want to shed some light on this matter ?
Sat, 2005-07-16 11:02#1
!important vs. other non-IE targets
Really, your CSS should work cross browser, without the need of hacks like this.
If you need them for specific things, I always use the child selector. I don't think I've ever used the !important rule.