On Oct 13, 4:00 am, wolfgang <[email protected]> wrote:
> Hi Morris,
>
> if you change
> #sidebarOptions a{display:block;
> to
> #sidebarOptions a{display:inline
>
> no linebreaks will be created after each link.
>
> But maybe it's better to create a custom wrapper, so that regular
> links are still displayed the way they are?
Thanks wolfgang,
You've explained to me what was causing the linefeed, even though I
don't understand why sidebarOptions is set up like that to begin with.
I was wanting to use the same tiddler optionally in either the
MainMenu or SideBarOptions which created quite a dilemma by trying to
modifiy it in any way.
Finally I did a little script to transclude it into SideBarOptions and
on the way added to the bottom of it using,
<<tiddler SwitchAppendMenu with: DemoMenu 'DemoMenu' SideBarOptions>>
SwitchAppendMenu is a script that appends (the below CSS) to the
bottom of the contents of DemoMenu then sends it to SideBarOptions
which replaces its contents.and modifies the display:inline
<html><style>
#tiddler{{tiddler.title}} #sidebarOptions a {display:inline;margin:0
0.2em;padding:0.2em 0.3em}
</style></html>
DemoMenu only modifies the display:inline when it is sent to
SideBarOptions. So when the original SideBarOptions is restored all is
normal again. This allows DemoMenu to also be used in MainMenu without
modification.
It might not be exactly Occam's Razor but the concept has many uses:-)
Regards,
Morris
On Oct 13, 4:00 am, wolfgang <[email protected]> wrote:
> Hi Morris,
>
> There isn't that much in StyleSheetLayout tiddler to define the
> sidebarOptions display:
>
> #sidebar{font-size:.9em;position:absolute;right:3px;width:16em}
> #sidebarOptions{padding-top:0.3em}
> #sidebarOptions a{display:block;margin:0 0.2em;padding:0.2em 0.3em}
> #sidebarOptions input{margin:0.4em 0.5em}
>
> if you change
> #sidebarOptions a{display:block;
> to
> #sidebarOptions a{display:inline
>
> no linebreaks will be created after each link.
>
> But maybe it's better to create a custom wrapper, so that regular
> links are still displayed the way they are?
>
> Regards..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---