1 reply [Last post]
Electric
Offline
Regular
Last seen: 14 years 18 weeks ago
Joined: 2005-07-15
Posts: 50
Points: 0

hey guys

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 ?

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 13 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

!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.

Verschwindende wrote:
  • CSS doesn't make pies