Re: [css-d] Use of !ie and !important

2008-01-08 Thread david
Mike Schinkel wrote:
 david wrote:
 !important is not a hack. It's an official W3C thing, 
 
 That doesn't mean is can't still be called a hack... '-p

I'll let people who use hacks talk about what constitutes a hack.

-- 
David
[EMAIL PROTECTED]
authenticity, honesty, community
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-06 Thread Slob Jones
Let me post the question properly.

The hack !important works in IE6 but not in IE7.

Is there a hack -- or perhaps another routine -- that will work in IE7?

My particular problem regards positioning. I find that extra pixel or 
two in IE can make a design look less than stellar.


david wrote:
 !important is not invalid. !ie is.
   

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-06 Thread Ben Fider
Create stylesheets with the css you want to feed IE6 and IE7.  Then put
conditional comments in the head of your page:

!--[if gte IE 6]link href=/css/ie6.css rel=stylesheet media=screen,
projection type=text/css /![endif]--

!--[if gte IE 7]link href=/css/ie7.css rel=stylesheet media=screen,
projection type=text/css /![endif]-

On Jan 6, 2008 1:38 AM, Slob Jones [EMAIL PROTECTED] wrote:

 Let me post the question properly.

 The hack !important works in IE6 but not in IE7.

 Is there a hack -- or perhaps another routine -- that will work in IE7?

 My particular problem regards positioning. I find that extra pixel or
 two in IE can make a design look less than stellar.


 david wrote:
  !important is not invalid. !ie is.
 

 __
 css-discuss [EMAIL PROTECTED]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-06 Thread David Laakso
Slob Jones wrote:
 Let me post the question properly.

 The hack !important works in IE6 but not in IE7.

 Is there a hack -- or perhaps another routine -- that will work in IE7?

 My particular problem regards positioning. I find that extra pixel or 
 two in IE can make a design look less than stellar.


 david wrote:
   
 !important is not invalid. !ie is.
   
 


How about providing a clickable link to the page that is giving you the 
problem?

Best,

~dL

-- 
http://chelseacreekstudio.com/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-06 Thread david
!important is not a hack. It's an official W3C thing, although I believe 
it's supposed to be used only in user stylesheets.

Slob Jones wrote:
 Let me post the question properly.
 
 The hack !important works in IE6 but not in IE7.
 
 Is there a hack -- or perhaps another routine -- that will work in IE7?
 
 My particular problem regards positioning. I find that extra pixel or 
 two in IE can make a design look less than stellar.
 
 david wrote:
 !important is not invalid. !ie is.

-- 
David
[EMAIL PROTECTED]
authenticity, honesty, community
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-06 Thread Mike Schinkel
david wrote:
 !important is not a hack. It's an official W3C thing, 

That doesn't mean is can't still be called a hack... '-p

-- 
-Mike Schinkel
http://www.mikeschinkel.com/blogs/
http://www.welldesignedurls.org
http://atlanta-web.org

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-05 Thread Slob Jones
I keep hearing how !important is an invalid hack, and yet I see no 
suggestions on how to solve the very real problem of that additional 
pixel or two in IE that screws up people's layouts.

That invalid hack, by the way, works very well in IE6.

Anyone?

 Can someone let me in what is meant with !ie hack and point me to a 
 reference?

 Ingo
 

 It's an invalid hack [1] used to target IE7. Almost any word can be used 
 after ! in the important identifier.

 [1] http://www.webdevout.net/css-hacks#unrecommended-important_ie

 Alan
   

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-05 Thread Peter Abramowicz
Conditional comments.

PeterA.

Slob Jones wrote:
 I keep hearing how !important is an invalid hack, and yet I see no 
 suggestions on how to solve the very real problem of that additional 
 pixel or two in IE that screws up people's layouts.

 That invalid hack, by the way, works very well in IE6.

 Anyone?
   
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-05 Thread david
!important is not invalid. !ie is.

Slob Jones wrote:
 I keep hearing how !important is an invalid hack, and yet I see no 
 suggestions on how to solve the very real problem of that additional 
 pixel or two in IE that screws up people's layouts.
 
 That invalid hack, by the way, works very well in IE6.
 
 Anyone?
 
 Can someone let me in what is meant with !ie hack and point me to a 
 reference?

 Ingo
 
 It's an invalid hack [1] used to target IE7. Almost any word can be used 
 after ! in the important identifier.

 [1] http://www.webdevout.net/css-hacks#unrecommended-important_ie

-- 
David
[EMAIL PROTECTED]
authenticity, honesty, community
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-04 Thread Alan Gresley
Ingo Chao on 4 January 2008 04:04

 Nancy E. Sosna Bohm wrote:
  Often I find a pixel or two difference between FireFox and IE7, mostly due
  to my use of borders and padding. I have been extensively using !ie at the
  end of a style declaration to correct this in IE7. This is similar to the
  !important used to target both FF and IE7, but not IE6.  Both of these work
  perfectly, but I don't see any mention of them on this list. Is there
  something wrong with this practice that I should know? I use conditional
  comments for IE6.
  
  Thanks in advance,
  
  Nancy
 
 
 Can someone let me in what is meant with !ie hack and point me to a 
 reference?
 
 Ingo

It's an invalid hack [1] used to target IE7. Almost any word can be used after 
! in the important identifier.

[1] http://www.webdevout.net/css-hacks#unrecommended-important_ie

Alan

http://css-class.com/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-04 Thread Ingo Chao
Alan Gresley wrote:
 ...

 Can someone let me in what is meant with !ie hack and point me to a 
 reference?

 Ingo
 
 It's an invalid hack [1] used to target IE7. Almost any word can be used 
 after ! in the important identifier.
 
 [1] http://www.webdevout.net/css-hacks#unrecommended-important_ie
 
 Alan
 
 http://css-class.com/
 
 

Thank you, Alan.

Cool. But in the light of upcoming IE8?
[Aside] Though this be madness, yet there is method in't.

Ingo
-- 
http://www.satzansatz.de/css.html
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-04 Thread Thierry Koblentz
  Ingo
 
  It's an invalid hack [1] used to target IE7. Almost any word can be
 used after ! in the important identifier.
 
  [1] http://www.webdevout.net/css-hacks#unrecommended-important_ie
 
  Alan
 
  http://css-class.com/
 
 
 
 Thank you, Alan.

I'm glad you asked ;)


-- 
Regards,
Thierry | http://www.TJKDesign.com




__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-03 Thread Gunlaug Sørtun
Nancy E. Sosna Bohm wrote:
 Often I find a pixel or two difference between FireFox and IE7, 
 mostly due to my use of borders and padding.

Regular use of borders and paddings should not create any difference
between Fx and IE7 - when both are in standard mode. There are certain
constructions that IE's engine interprets different from Gecko though,
so I'm not ruling out that such differences appear at times.
Can you present links to cases that clearly show such differences?

 I have been extensively using !ie at the end of a style declaration 
 to correct this in IE7. This is similar to the !important used to 
 target both FF and IE7, but not IE6.  Both of these work perfectly, 
 but I don't see any mention of them on this list.

The !important hack is an old one, and I think both hacks have been
mentioned here on css-d a few times. Personally I've never used any of them.

 Is there something wrong with this practice that I should know? I use
  conditional comments for IE6.

Extensive use of (any) hacks is something few will promote, as it often
signals a somewhat flawed approach towards problems with
browser-differences. We try to find the cause of the problems first and
try to fix them - iron them out, and not hack away at the apparent
differences until it's established that the problems clearly can't be
overcome any other way.

Thus, I'd like to have a look at the problems before commenting on
whether there's something wrong with the practice, or not.

regards
Georg
-- 
http://www.gunlaug.no
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Use of !ie and !important

2008-01-03 Thread Ingo Chao
Nancy E. Sosna Bohm wrote:
 Often I find a pixel or two difference between FireFox and IE7, mostly due
 to my use of borders and padding. I have been extensively using !ie at the
 end of a style declaration to correct this in IE7. This is similar to the
 !important used to target both FF and IE7, but not IE6.  Both of these work
 perfectly, but I don't see any mention of them on this list. Is there
 something wrong with this practice that I should know? I use conditional
 comments for IE6.
 
 Thanks in advance,
 
 Nancy


Can someone let me in what is meant with !ie hack and point me to a 
reference?

Ingo

-- 
http://www.satzansatz.de/css.html
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/