Re: css hack for IE: is using the * acceptable
- From: "windandwaves" <winandwaves@xxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 12:13:33 +1300
Toby Inkster wrote:
> windandwaves wrote:
>
>> However, I noticed that the asterix works fine. Just try it. It is
>> invalid, but that is the exact reason you do it. So that firefox,
>> etc... do not go for the padding 12px, while IE ignores the * and
>> applies padding 12px.
>
> No -- it's invalid, which is why you *shouldn't* use it.
>
> Proper browsers (Opera, Firefox, etc) might ignore the second padding
> value today, but future versions might start to apply the second
> padding value. You've used an invalid contruct, so "proper" behaviour
> is undefined -- the browsers can do what they like.
You be pleased to know I have retrieved the items with * from my stylesheet,
placed them in ie.css and added the following code to my page:
function styler() {
$v = '';
$b = browser_detection('browser');
$file = 's/'.$b.'.css';
if(file_exists($file)) {
$v .= '<link rel="stylesheet" type="text/css" href="'.$file.'">';
}
return $v;
}
Thank you.
.
- References:
- css hack for IE: is using the * acceptable
- From: windandwaves
- Re: css hack for IE: is using the * acceptable
- From: Toby Inkster
- Re: css hack for IE: is using the * acceptable
- From: windandwaves
- Re: css hack for IE: is using the * acceptable
- From: Toby Inkster
- css hack for IE: is using the * acceptable
- Prev by Date: Re: Antenna Web Design Studio
- Next by Date: Re: Text size
- Previous by thread: Re: css hack for IE: is using the * acceptable
- Next by thread: Re: css hack for IE: is using the * acceptable
- Index(es):
Relevant Pages
|