Inline text formatting

Style any part of a text differently from the rest of the text with Inline text formatting.

We’re transitioning to a new UI, and are in the process of updating our Webflow University content.

Inline text formatting options give you the power to style any part of the text differently from the rest of the text. Select text from any text element, like a paragraph or heading, and you can bold, italicize, link, or simply style that selected text.

How to format text

To format inline text, highlight any portion of text in a text element. A text formatting bar appears above the highlighted text with the following options:

  • Bold
  • Italic
  • Superscript
  • Subscript
  • Insert link
  • Wrap with span
  • Clear formatting

Click on a formatting option(s) from the text formatting bar to apply it to your highlighted text.

Note: Rich text has a different inline text formatting bar.

How to style inline text

Applying any inline text formatting on a text selection creates a nested element inside your main text element. You can select any of these nested elements and style them further using the Style panel.

You can apply multiple formats on the same text selection. For example, you can bold and italicize the same word. As you add and modify these style values, the text stays inline within the text element.

Bolding and italicizing text

Setting your text to Bold gives it a default style of bold font weight. Although you can style this nested element by creating a class, you may choose to style the All Bolds tag to set the default styling of all bold text across your site.

To style the All Bolds tag:

  1. Select the Bold text element
  2. Open the Style Panel
  3. Click into the Selector field
  4. Choose the All Bolds tag
  5. Adjust the styling

Setting your text to Italic gives it a default style of italic. Again, you can style this nested element by creating a class, or you can choose to style the All Italics tag to set the default styling of all italic text in your site. 

To style the All Italics tag:

  1. Select the Italic text element
  2. Open the Style Panel
  3. Click into the Selector field
  4. Choose the All Italics tag
  5. Adjust the styling
Good to know: If your font doesn't have a bold font weight or italics versions, then the browser will generate a version for both which may not render well.

Creating superscript or subscript text

Good to know: Screen readers do not explicitly indicate the presence of superscript or subscript characters in your text. To improve usability and ensure screen readers can differentiate superscript and subscript text from surrounding text, create descriptive screen reader-only text using ARIA attributes. Learn more about ARIA attributes.

Setting your text to Superscript transforms the selection into text that appears half a character above the normal line and renders it in a smaller font. You can style this nested element by creating a class, or you can choose to style the All Superscripts tag to change the default styling of all superscript text in your site.

To style the All Superscripts tag:

  1. Select the Superscript text element
  2. Open the Style Panel
  3. Click into the Selector field
  4. Choose the All Superscripts tag
  5. Adjust the styling

Setting your text to Subscript transforms the selection into text that appears half a character below the normal line and renders it in a smaller font. You can style this nested element by creating a class, or you can choose to style the All Subscripts tag to change the default styling of all subscript text in your site.

To style the All Subscripts tag:

  1. Select the Subscript text element
  2. Open the Style Panel
  3. Click into the Selector field
  4. Choose the All Subscripts tag
  5. Adjust the styling

Inserting an inline link

Insert Link transforms the selection into a text link. You can then select this link and set up your link settings from the Element settings panel. By default, the link will inherit its styles from the All Links tag. Learn more about styling tags.

Wrapping a text in span to style it further

You can use inline styles to quickly bold, italicize, or transform a selection to superscript or subscript without further styling the selected text. However, you may want to add other styles to your text. For example, you may want to underline a phrase or create a highlight effect by adding a background. The Wrap with span option wraps the selected text in an element that can be styled using any of the properties in the Style panel. You can create a class and apply it to multiple span elements as well.

Example - Underline text

Usually, you would define the text decoration property on a selected word or phrase in a paragraph. To do this:

  1. Double-click to edit the paragraph
  2. Select the text you want to underline
  3. Select the Wrap with Span option
  4. Make sure the text span is selected
  5. Add the underline text decoration property in the Style panel

Removing formatting

To clear any custom formatting:

  1. Double-click the text element
  2. Select the formatted text
  3. Click Clear formatting

You can select the formatted text areas individually or select the entire paragraph and clear all formatting with one click. When you clear formatting it removes inline styles, spans, and links.

Non-breaking space

When using paragraphs you may notice that sometimes one word is left on the last line. You can link words together while preserving the space by using a non-breaking space. A non-breaking space creates a space between words that cannot be broken by word wrap. To add a non-breaking space, press Shift + space when adding spaces between words you want to keep together.

Important: Be careful when using manual breaks or non-breaking spaces. It may solve a text issue on larger screens but may cause other issues on smaller screens.

Table of contents

Continue learning

Hmm…we couldn’t find any results for “search query”. Try a different search term or check out our community forum.

Search the forumReset the filter
Load more

Filter

Reset
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Topics
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Back to top