wiki:plugin:bootswrapper:text

Text

This syntax have two version (lowercase and uppercase).
  • The lowercase version <text> create a inline element (eg. <span>).
  • The uppercase version <TEXT> create a block element (eg. <div>).

See the samples.

Easily realign text to components with text alignment attribute.

Left aligned text.

Center aligned text.

Right aligned text.

Justified text.

No wrap text.


<TEXT align="left">Left aligned text.</TEXT>
<TEXT align="center">Center aligned text.</TEXT>
<TEXT align="right">Right aligned text.</TEXT>
<TEXT align="justify">Justified text.</TEXT>
<TEXT align="nowrap">No wrap text.</TEXT>


Transform text in components with text capitalization attribute.

Lowercased text.

Uppercased text.

Capitalized text.


<text transform="lowercase">Lowercased text.</text>
<text transform="uppercase">Uppercased text.</text>
<text transform="capitalize">Capitalized text.</text>


Convey meaning through color with a handful of emphasis utility attributes. These may also be applied to links and will darken on hover just like our default link styles.

Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.

Nullam id dolor id nibh ultricies vehicula ut id elit.

Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

Maecenas sed diam eget risus varius blandit sit amet non magna.

Etiam porta sem malesuada magna mollis euismod.

Donec ullamcorper nulla non metus auctor fringilla.


<text type="muted"> [...] </text>
<text type="primary"> [...] </text>
<text type="success"> [...] </text>
<text type="info"> [...] </text>
<text type="warning"> [...] </text>
<text type="danger"> [...] </text>


Similar to the contextual text color attributes, easily set the background of an element to any contextual attribute. Anchor components will darken on hover, just like the text attributes.

Nullam id dolor id nibh ultricies vehicula ut id elit.

Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

Maecenas sed diam eget risus varius blandit sit amet non magna.

Etiam porta sem malesuada magna mollis euismod.

Donec ullamcorper nulla non metus auctor fringilla.


<text background="primary"> [...] </text>
<text background="success"> [...] </text>
<text background="info"> [...] </text>
<text background="warning"> [...] </text>
<text background="danger"> [...] </text>


Attribute Allowed Values Description
type muted primary success info warning danger Contextual color of text
background primary success info warning danger Contextual background of text
align left right center, justify nowrap Text align
transform lowercase uppercase capitalize Text transformation
size medium xx-small x-small small large x-large xx-large smaller larger length (%, em, px, etc.) Text sizes
  • wiki/plugin/bootswrapper/text.txt
  • Last modified: 4 years ago
  • by Giuseppe Di Terlizzi