create new tag
, view all tags

SID-00387: Increase or decrease text size per word/sentence/paragraph

Status: Answered Answered TWiki version: 4.3.1 Perl version:
Category: CategoryEditing Server OS: Last update: 10 months 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

      Change status to:
ALERT! 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.
Status Answered
Title Increase or decrease text size per word/sentence/paragraph
SupportCategory CategoryEditing
TWiki version 4.3.1
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2017-03-31 - HaraldJoerg
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.