SID-00387: Increase or decrease text size per word/sentence/paragraph
| Status: |
Answered |
TWiki version: |
4.3.1 |
Perl version: |
|
| Category: |
CategoryEditing |
Server OS: |
|
Last update: |
8 years ago |
I cannot find information on how to increase or decrease text size in a topic. I am not looking to change the font size of an entire web, rather how to change a word, sentence or paragraph text size. I recall in Confluence it was something simple variable called "Tiny Text" or "Small Text".
I suspect there is an easy answer out there somewhere and I've just missed it.
--
KellyRiley - 2009-06-25
Discussion and Answer
Take a look at
Support.SID-00297 for an example of creating your own variables to control the appearance of text.
--
SeanCMorgan - 2009-06-26
Unfortunately SID-00297 doesn't answer this question which was "how to increase or decrease text size [snip] [for] a word, sentence or paragraph"
--
TWiki Guest - 2017-03-30
You can define a preferences setting, either in your
Main.TWikiPreferences for site-wide scope, a
WebPreferences topic for web-level scope, or a topic for topic level scope:
* Set STARTBIG = <span style="font-size: 130%;">
* Set ENDBIG = </span>
* Set STARTSMALL = <span style="font-size: 80%;">
* Set ENDSMALL = </span>
Then you can write:
This is a test with %STARTSMALL% small text %ENDSMALL% and %STARTBIG% big text %ENDBIG%.
Which renders as:
This is a test with
small text and
big text .
--
Peter Thoeny - 2017-03-31
While Peter's solution is robust (and has been around for ages), TWiki now also offers a shorter version which I prefer for styling words or short phrases:
* Set BIG = <span style="font-size: 130%; border: 1px; border-style:solid;">%DEFAULT%</span>
And then write
text with %BIG{big stuff}% inside
to get text with
big stuff inside.
TWikiVariables explains how to do this sort of thing.
--
Harald Jörg - 2017-03-31
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.