|
Posted by windandwaves on 10/24/05 02:13
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.
Navigation:
[Reply to this message]
|