Access Keys:
Skip to content (Access Key - 0)

Adaptavist Documentation Move

This documentation is deprecated. Adaptavist's documentation has moved to a new location where it is maintained and updated. Please visit Adaptavist's new Documentation area.

span macro

Overview:

The {span} macro wraps content in a span tag with optional class and styles...

The span tag is a non-visual (by default) element that can be used to apply additional properties to content contained within it. Unlike the div tag, a span does not stretch to fill the available width of it's containing element making it ideal for use with inline content such as a portion of text in a paragraph or a cell within a table.

This macro is primarily designed for use with the style macro as this would make it easy to apply custom styles to your content. Alternatively you can specify specific styles for each use of the macro.

Parameters:

Add the macro to your page as follows:

{span:class=x y z|style=css}
your content
{span}
Parameter Required Default Notes
class   The class to associate with the span. Multiple classes can be specified by separating them with spaces.
style   An optional inline style sheet to apply to an individual span tag.

Examples:

Hints and Tips:

If you are using the same inline style several times, create a stylesheet for the class using either the style macro or the CSS Custom Styles feature of the Builder theme.

Frequently Asked Questions:

Q Where can I learn more about CSS and Span tags?
A Try http://www.w3schools.com

as they have full tutorials on CSS and HTML.

See Also:



View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence