How to create a panel so that quotes can always be displayed on the page?

1 view
Skip to first unread message

steve

unread,
Jul 18, 2009, 12:06:12 PM7/18/09
to TiddlyWiki
Hello:

I am using the QOTD to display a quotation within the main menu as
follows:
{{{
[[Han Guk Mu Sool]]
----
[[All Techniques]]
[[Belt Requirements]]
[[Korean Terms]]
* [[Forms]]
* [[One Steps]]
* [[Self Defense]]
----
{{smalltext{<<QOTD [[Useful Quotes]] inline>>}}}
}}}

where smalltext is defined as
{{{
.smalltext { font: 9px arial, hevetica, sans-serif; line-height:
10px;}
}}}

When viewing the MainMenu tiddler the quote is displayed as expected
(ie with the small text and lines close together).

The problem is that there seems to be a lower bound on the main menu
as displayed so that the lines aren't as close together as they appear
when viewing the tiddler. What I am trying to accomplish is to have
the quotes always appear on the page even if they contain several
lines. Is there a way to place the quote in a panel that is always
displayed (ie doesn't scroll off)?

Thanks for any help
Steve Wharton

FND

unread,
Jul 23, 2009, 7:26:16 AM7/23/09
to Tiddl...@googlegroups.com
> The problem is that there seems to be a lower bound on the main menu
> as displayed so that the lines aren't as close together as they appear
> when viewing the tiddler.

Could you provide a test case that illustrates this issue?

> Is there a way to place the quote in a panel that is always
> displayed (ie doesn't scroll off)?

Well, you could use "position: fixed;" (CSS), but that's not supported
across all browsers...


-- F.

wumpus

unread,
Jul 23, 2009, 3:58:12 PM7/23/09
to TiddlyWiki
FND

It dawned on me that it was awkward to try to fit a long quote in the
mainmenu. After looking at MPTW I decided to instead use the top menu
configuration from MPTW and to have the quote displayed within a
tiddler. See http://mptwcadfael.tiddlyspot.com/ for an example.

Thanks for responding.

Steve

Mike

unread,
Jul 24, 2009, 12:28:40 AM7/24/09
to TiddlyWiki
My solution to the same problem was to create a fixed div. . .
in the PageTemplate
<div id='displayArea'>
<div class='hD' id='hD' refresh='content' tiddler='contentHeader'></
div>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
<div class='fD' id='fD' refresh='content' tiddler='contentFooter'></
div>
</div>

This creates a Header and Footer for the TW
if contentHeader & contentFooter do not exist nothing is displayed,
but if you create a tiddler with that name it will be displayed
I created a custom class of hD & fD, but you could also use the
existing class tiddler (format like a tiddler)

Hope that helps, or at least gives you some new ideas,

Mike

On Jul 23, 2:58 pm, wumpus <swwhar...@verizon.net> wrote:
> FND
>
> It dawned on me that it was awkward to try to fit a long quote in the
> mainmenu.  After looking at MPTW I decided to instead use the top menu
> configuration from MPTW and to have the quote displayed within a
> tiddler.  Seehttp://mptwcadfael.tiddlyspot.com/for an example.

wumpus

unread,
Jul 24, 2009, 7:58:55 AM7/24/09
to TiddlyWiki
Mike

I added the contentHeader using the class tiddler as per your
suggestion. The result is just what I was looking for.

Thanks
Steve

On Jul 24, 12:28 am, Mike <eris...@gmail.com> wrote:
> My solution to the same problem was to create a fixed div. . .
> in the PageTemplate
>  <div id='displayArea'>
>         <div class='hD' id='hD' refresh='content' tiddler='contentHeader'></
> div>
>         <div id='messageArea'></div>
>         <div id='tiddlerDisplay'></div>
>         <div class='fD' id='fD' refresh='content' tiddler='contentFooter'></
> div>
> </div>
>
> This creates a Header and Footer for the TW
> if contentHeader & contentFooter do not exist nothing is displayed,
> but if you create a tiddler with that name it will be displayed
> I created a custom class of hD & fD, but you could also use the
> existing class tiddler (format like a tiddler)
>
> Hope that helps, or at least gives you some new ideas,
>
> Mike
>
> On Jul 23, 2:58 pm, wumpus <swwhar...@verizon.net> wrote:
>
> > FND
>
> > It dawned on me that it was awkward to try to fit a long quote in the
> > mainmenu.  After looking atMPTWI decided to instead use the top menu
> > configuration fromMPTWand to have the quote displayed within a
> > tiddler.  Seehttp://mptwcadfael.tiddlyspot.com/foran example.
Reply all
Reply to author
Forward
0 new messages