[pmwiki-users] IE ccs compatability
Patrick R. Michaud
pmichaud at pobox.com
Thu Apr 12 08:22:45 CDT 2007
On Thu, Apr 12, 2007 at 12:59:46PM +0100, Hans wrote:
> Thursday, April 12, 2007, 12:51:13 PM, Christian wrote:
>
> > i want to put this code on my wiki, has anyone done this?
>
> > <!--[if gte IE 6]>
> > <link rel="stylesheet" type="text/css" href="iespecific.css" />
> > <![endif]-->
>
> > i was just going to throw it onto my side bar page, but i was 100% sure
> > if that would work.
>
> It needs to go into the head section of your skin's template .tmpl
> file.
It can also be done without having to modify the skin template:
$HTMLHeaderFmt['ie'] =
'<!--[if gte IE 6]
<link rel="stylesheet" type="text/css" href="$PubDirUrl/css/ie.css" />
<![endif]-->';
> > also while on the subject.. is it possible to do a if on browser type?
>
> > (:if browser IE:) Get Firefox (:else:) You made the right choice (:if:)
>
> No. Not yet anyway.
Perhaps:
$Condition['browser'] =
'strpos($_SERVER['HTTP_USER_AGENT'], $condparm) !== false';
Then the above would work.
Pm
More information about the pmwiki-users
mailing list