Stuart, How can it be called invalid coding if it does validate? I find using conditional comments gives an excuse to be lazy and just write a whole new bunch of styles for IE that could have been fixed in the original stylesheet with a bit of playing around. When working on sites built by other people, it is always a pain to have to search through 10 stylesheets to fix a problem in IE5, you end up getting hacks for hacks cause there are too many stylesheets. Hence I would rather not use them and just add a select number of hacks to my main stylesheet when it is a known bug. When I stop supporting IE6 and below, I can do a simple search and replace for the * html hack.
The debate could go on for days really, all I'm after is a way of targeting IE7 that does validate, not opinions on whether I'm pretending to create valid code or not! On 18/05/07, Stuart Foulstone <[EMAIL PROTECTED]> wrote:
Hi, If you want to do hacks then you shouldn't pretend to do valid coding. Stuart On Fri, May 18, 2007 2:05 pm, Paul Collins wrote: > Nice one, thanks for your help. I knew there was an answer! > > The only problem is validation I guess, anyone know of a hack that > validates? > > Cheers > > On 18/05/07, Stephen Kelly <[EMAIL PROTECTED]> wrote: >> I find this invaluable, >> >> http://www.webdevout.net/css-hacks >> >> >> >> On 18/05/07, Matthew Pennell <[EMAIL PROTECTED]> wrote: >> > On 5/18/07, Paul Collins <[EMAIL PROTECTED]> wrote: >> > > I am trying to find hacks for IE7 and I can't, could someone please >> > > point me in the right direction? I would like the following: >> > >> > #mydiv { >> > background: red; /* all browsers */ >> > *background: green; /* all IE */ >> > _background: blue; /* IE6 and below */ >> > } >> > >> > Or use conditional comments, obviously. >> > >> > >> > >> > ******************************************************************* >> > List Guidelines: >> > http://webstandardsgroup.org/mail/guidelines.cfm >> > Unsubscribe: >> > http://webstandardsgroup.org/join/unsubscribe.cfm >> > Help: [EMAIL PROTECTED] >> > ******************************************************************* >> >> >> -- >> http://www.twoplayer.net >> >> >> ******************************************************************* >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: [EMAIL PROTECTED] >> ******************************************************************* >> >> > > > -- > ----------------------------------------------- > > Paul Collins > Ph: +44 (0) 793 9038 249 (UK) > [EMAIL PROTECTED] > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > > -- Stuart Foulstone. http://www.bigeasyweb.co.uk BigEasy Web Design 69 Flockton Court Rockingham Street Sheffield S1 4EB Tel. 07751 413451 ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
-- ----------------------------------------------- Paul Collins Ph: +44 (0) 793 9038 249 (UK) [EMAIL PROTECTED] ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
