Re: [WSG] IE7 CSS fix

2009-04-02 Thread hariharan k
Hi, Try it out by #foo .bar { padding-left:60px; /* For mozilla safari */ #padding-left:65px; /* IE 7 */ _padding-left:60px; /* IE 6 */ } On Thu, Apr 2, 2009 at 5:37 AM, Prashant prashantshr...@gmail.com wrote: Hi, I need to implement a padding-left:65px in IE7. I have following -

Re: [WSG] IE7 CSS fix

2009-04-02 Thread James Ducker
Can you not use a conditional? It's far more reliable than CSS hacks, which may cause problems in future browsers. !--[if IE 7] link rel=stylesheet type=text/css href=iehax.css / ![endif]-- - James *** List Guidelines:

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Gunlaug Sørtun
James Ducker wrote: Can you not use a conditional? Of course one can. It's far more reliable than CSS hacks, which may cause problems in future browsers. I don't agree with that assessment, providing one work a bit on selecting the right CSS hack and don't just use any hack because it

RE: [WSG] IE7 CSS fix

2009-04-02 Thread michael.brockington
-Original Message- From: li...@webstandardsgroup.org on behalf of Gunlaug Sørtun Sent: Thu 4/2/2009 6:15 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] IE7 CSS fix It's far more reliable than CSS hacks, which may cause problems in future browsers. I don't agree

RE: [WSG] IE7 CSS fix

2009-04-02 Thread Alex
I dont understand why anyone needs to hack anything. If you design to web standards and use a logical structure/layout with good use of floats or positioning, you can develop a page/layout that works in all browsers. It usually takes a bit of tweaking but it can be done. I thought this group

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Gunlaug Sørtun
michael.brocking...@bt.com wrote: To my mind, that is the definition of a CSS hack - it is abuse of a bug that is believed to only apply to the required browser(s) Mmm. One exploits a bug to kill/fix another bug, and triggers an unknown number of bugs in various browsers - present and future

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Gunlaug Sørtun
Alex wrote: I dont understand why anyone needs to hack anything. If you design to web standards and use a logical structure/layout with good use of floats or positioning, you can develop a page/layout that works in all browsers. It usually takes a bit of tweaking but it can be done. Sure,

RE: [WSG] IE7 CSS fix

2009-04-02 Thread Chris Pearce
@webstandardsgroup.org Subject: RE: [WSG] IE7 CSS fix I dont understand why anyone needs to hack anything. If you design to web standards and use a logical structure/layout with good use of floats or positioning, you can develop a page/layout that works in all browsers. It usually takes a bit

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 {

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Alex
knowledge about better or newer browsers. Anyway...thought I would give Gunlaug something to chew on...(cheer up son). - Original Message - From: Gunlaug Sørtun [mailto:gunla...@c2i.net] To: wsg@webstandardsgroup.org Sent: Thu, 02 Apr 2009 23:35:31 +0200 Subject: Re: [WSG] IE7 CSS fix Alex

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Gunlaug Sørtun
Prashant wrote: I have tried the following but for some reason IE7 is picking IE6 hacks only - Which means IE7 is in Quirks Mode - on level with IE5.5. Georg -- http://www.gunlaug.no *** List Guidelines:

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Gunlaug Sørtun
Alex wrote: Blimey, you norwegians are a tad opinionated. Nah, we just just like to be given a valid reason for changing our minds. Comes with the territory - we never take the easy way out since there isn't any in this country :-) What does 'one' actually think 'one' is going to acheive in

Re: [WSG] IE7 CSS fix

2009-04-02 Thread Andrew Maben
On Apr 2, 2009, at 9:49 PM, Gunlaug Sørtun wrote: Sorry, but this Norwegian can't see the point in being stuck in the past just because someone else thinks that's good enough. Life's too short, and after having worked in front of these screens for nearly thirty years I'm getting a bit

Re: [WSG] IE7 CSS fix

2009-04-01 Thread Gunlaug Sørtun
Prashant wrote: I need to implement a padding-left:65px in IE7. Which mode is IE7 in for your document? Hacks like... *:first-child+html #foo .bar {...} ...will only work in IE7 Strict Mode. If it doesn't work in Strict Mode, then something is overruling it. Georg --