Hi Dave
The problem with stylesheet handling at the moment is that stylesheet
tiddlers may be rendered in any order. That means that in order to override
an existing style you can't just rely on being executed second. Instead,
your style rules need to have a higher specificity than the corresponding
rule in the theme that you're overriding. (See
http://www.htmldog.com/guides/css/intermediate/specificity/ for a simple
overview).
For example, to redefine the body background colour, instead of:
body {
background: red;
}
You could increase the specificity by inserting an otherwise redundant
selector for the root HTML tag:
html body {
background: red;
}
Let me know how you get on,
Best wishes
Jeremy
On Sat, Jul 27, 2013 at 12:44 PM, David Gifford <[email protected]> wrote:
> Hi Jeremy,
>
> Thanks for the helpful responses. I will play around with them for a
> while.
>
> You asked what I am doing for style changes. What I did was create a
> tiddler entitled $:/StyleSheet and tagged it $:/tags/stylesheet, and
> added CSS stuff that worked. But when I save refresh Firefox it reverts
> back to the standard CSS.
>
> Dave
>
--
Jeremy Ruston
mailto:[email protected]
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.