Span
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 its 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 CSS Stylesheet macro to make it easier to apply custom styles to content. Alternatively, specify styles for each use of the macro.
Add a Span to your page
Examples
Define a span
By default, a span does not affect the way things look on screen:
This will add the following HTML to your page:
<p>This is <span>a span</span> exampleThis is a span example. The macro only becomes useful when its parameters are used as shown in the following examples.
Custom class
To define a custom class, enter the class name in the Class parameter. The class will be applied only to the content contained within the Span macro.
Inline styles
If you are using borders, images, or icons, inline styles can be used to add padding between the Span macro content and other content.
Hints and tips
If using the same inline style several times, create a stylesheet for the class using either the CSS Stylesheet macro or the Builder - CSS Custom Styles feature of the Builder theme.
Frequently Asked Questions
- Q: Where can I learn more about CSS and Span tags?
- Try http://www.w3schools.com, as they have full tutorials on CSS and HTML.