[css-d] star hack /tan hack or what ? a question...

2008-05-15 Thread corey deep
Hello,

I have used hack for ie6 :

div.someclass {
width: 300px;
* width: 320px;
}

which is it is different than the standard star selector hack, i.e.

* html div.someclass {
width: 320px;
}



what is the first example called  ? is  it  an improper interpretation of
the star selector hack. I want to know if I should use it ?
__
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] star hack /tan hack or what ? a question...

2008-05-15 Thread David Hucklesby
On Thu, 15 May 2008 16:32:54 -0700, corey deep wrote:
 Hello,

 I have used hack for ie6 :

 div.someclass {
 width: 300px;
 * width: 320px;
 }

 which is it is different than the standard star selector hack, i.e.

 * html div.someclass {
 width: 320px;
 }


 what is the first example called  ? is  it  an improper interpretation of the 
 star
 selector hack. I want to know if I should use it ?



I think you meant to show the star next to the width property name, no?
No space between.

It is a true hack, as property names do not begin with a star. IE 5 - 7
ignore the star, and apply a width of 320px. Other browsers correctly
ignore that declaration and apply a width of 300px.

The star selector or Tan hack (example 2) does not apply to IE 7.

FWIW - you can also target IE 5 - 6 and leave IE 7 alone by using an
underscore instead of a star.

It seems to be popular. I use it as a quick fix while debugging.

Don't know what it's called, though.

Cordially,
David
--

__
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] star hack /tan hack or what ? a question...

2008-05-15 Thread Glen Barber


 FWIW - you can also target IE 5 - 6 and leave IE 7 alone by using an
 underscore instead of a star.


I wish I knew about this hack earlier in the week.  ;)

However, I notice you both specify 'width:' declarations.  Does this hack
work with 'height:' as well?

-- 
Glen Barber
http://www.dev-urandom.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] star hack /tan hack or what ? a question...

2008-05-15 Thread Gunlaug Sørtun
Glen Barber wrote:

 I wish I knew about this hack earlier in the week.  ;)
 
 However, I notice you both specify 'width:' declarations.  Does this
 hack work with 'height:' as well?

Sure. IE5 - 7 eats most non-valid character you can think of in front
of any property-name...

http://annevankesteren.nl/2005/07/ie-hack
http://annevankesteren.nl/2007/02/ie7-css-hacks

...and will apply the styles.

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/