> Hello all. Is there a way to create a stylesheet than only loads on > I.E. and at the same time unable the default stylesheet? > I whant to have 2 rendered versions of my TW: one (default stylesheet) > for Firefox and one for I.E. (other stylesheet).
Try this: 1) Create three tiddlers: DefaultStyleSheet, FFStyleSheet, and IEStyleSheet. 2) Copy your current StyleSheet contents, and paste the appropriate bits of CSS into each of these tiddlers, so that DefaultStyleSheet contains only 'common' cross-browser compatible CSS. 3) Paste any browser-specific CSS rules into their respective stylesheet tiddlers (i.e., either FFStyleSheet or IEStyleSheet). 4) Create another tiddler, SetBrowserStylesheet, tagged with 'systemConfig', containing: ------------------ config.shadowTiddlers.StyleSheet='[[DefaultStyleSheet]]'; if (config.browser.isIE) config.shadowTiddlers.StyleSheet+='[[IEStyleSheet]]'; if (config.browser.isGecko) config.shadowTiddlers.StyleSheet+='[[FFStyleSheet]]'; ------------------ 5) **delete** the current [[StyleSheet]] tiddler, (so the shadow tiddler will be used) 6) save-and-reload, so that the code in SetBrowserStylesheet is invoked and the *shadow* stylesheet contents are set based on the browser type. Note: there are several other 'config.browser.*' values you can use as needed to determine the desired StyleSheet content: isGecko, isIE, isLinux, isMac, isOpera, isSafari, isUnix, isWindows enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

