Thanks chaps.

I think using the IE hacks in the CSS is going to be good for me. I
have this problem where I need an IE-specific style but it needs to
kick in after a plugin has written a StyleSheet to the head.

I realised another solution is to add something like "ie6" as a class
on the HTML element via a plugin that checks which browser you're on,
then I can target this in normal stylesheets.


J.

On Apr 6, 12:47 pm, rakugo <[email protected]> wrote:
> If you have the option of having a separate css file to the document,
> you can obviously use conditional if statements for IE using the
> MarkupPreHead tiddler.
> <!--[if IE 6]>
> <link rel="stylesheet" href="ie6.css" type="text/css"></link>
> <![endif]-->
>
> Jon
>
> On Apr 6, 8:20 am, colmjude <[email protected]> wrote:
>
>
>
>
>
>
>
> > > Does anyone know how to add IE-specific stylesheets into TiddlyWikis?
>
> > > I know one method, which involves a plugin: check config.browser.isIE
> > > and then add a link tag to the HEAD. This isn't what I need this time.
>
> > > Any other methods?
>
> > Would putting the link tag in one of the PRE/POST HEAD/BODY shadow
> > tiddlers work?
>
> > The easiest thing might be to have a IE specific stylesheet tiddler
> > that is transcluded in the StyleSheet tiddler or theme.  The CSS in
> > the IE only tiddler could then use the IE hacks to target the specific
> > browsers. For example:
>
> > width: 420px\9; /* to target IE8 and below */
> > *width: 380px; /* to target IE7 and below */
> > _width: 350px; /* target IE6 */
>
> > Hope that helps,
>
> > Colm

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to