Hi,
A working testcase can be found at TeamWork [1]

[SliderButtonCSS] tiddler contains:
{{myCSS{<<slider chSliderXX "SliderButtonCSS##section1" "click me, I
am a slider" "some help text">>}}}

!section1
This is text inside a slider
!end

/*-- copy this to your StyleSheet --*/
.myCSS .button {
        border: 1px solid green;
        display: block;
}

If you have a look with eg: Firebug, and inspect the slider button,
you will see, every slider has a class="button" which can be changed
globally, if you want by
.button {} But this will have a lot of side effects :)

thats why a wrapper {{myCSS{}}} is needed.

-m
PS: firebug helps a lot

[1] http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#SliderButtonCSS
On Nov 9, 8:17 pm, Yakov <[email protected]> wrote:
> So, many macros that add an element to a document make "the same"
> button. Can I switch it's CSS somehow?
>
> To make this clearer, let's consider the <<slider>> macro. For
> instance, if I add just __ around the macro, like this:
>
> __<<slider ...>>__
>
> than all the content which opens after clicking the button gets
> underlined. So, can I change the button's style without causing the
> content to change? Or, is it rather the <<slider>>'s problem and I can
> use usual styling for all others without such side effects?
>
> Do ~all macros make and "input" element so that it is enough to make a
>
> .myMacroStyling input { ... }
>
> line in CSS to be able to change them all?
>
> Thanks, Yakov.

-- 
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