Re: [WSG] IE7 CSS fix

2009-04-02 Thread Prashant
Thanks everyone.

I don't want to use conditionals at this stage as I am new to the system and
using conditionals would mean modifying a global template which I am not
comfortable doing right now.

I have tried the following but for some reason IE7 is picking IE6 hacks only
-

#foo .bar {
  padding-left:60px; /* For mozilla & safari */
#padding-left:65px; /* IE 7 */
_padding-left:60px; /* IE 6 */
}


2009/4/3 James Ducker 

> Can you not use a conditional? It's far more reliable than CSS hacks, which
> may cause problems in future browsers.
> 
>
>
> - James
>
>
> ***
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: memberh...@webstandardsgroup.org
> ***
>


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***

[WSG] IE7 CSS fix

2009-04-01 Thread Prashant
Hi,

I need to implement a padding-left:65px in IE7. I have following -

#foo .bar {
  padding-left:60px;
}

I have tried adding following 3 options one at a time immediately after the
one above and in all the cases IE7 picks padding-left:60px;

*+html #foo .bar {
  padding-left:65px;
}

*:first-child+html #foo .bar {
  padding-left:65px;
}

*+html #foo .bar {
  padding-left:65px !important;
}

Any suggestions how do I fix this issue? Help appreciated.

Regards,
Prashant


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
***