☰
ELEMENTOR / PRACTICE

Balanced Heading Wraps in Elementor with text-wrap: balance

Balanced Heading Wraps in Elementor with text-wrap: balance

In Elementor cards, hero blocks, and sections, long headings often wrap unpredictably: the first line is nearly full, while the last contains just one short word. This can make the layout look unbalanced, and cards in the same row may have different heights.

The CSS property text-wrap: balance helps the browser distribute text more evenly across lines. It does not change the text itself and does not require a plugin, but the result should be checked at different screen widths.

Why Standard Heading Wraps Look Uneven

With standard wrapping, the browser forms lines mainly according to the available container width. It does not always account for the fact that, for a short heading, it may be more visually effective to create two lines of similar length rather than leave one word by itself.

The problem is especially noticeable in product cards, pricing plans, blog previews, and hero sections. When several cards with headings of different lengths appear side by side, one block may become taller or have noticeably more empty space.

text-wrap: balance asks the browser to optimize how text is distributed across lines. This is not a rigid manual line break, so the heading remains responsive and can reflow at a different width.

  • A single word on the last line is less likely.
  • Headings in neighboring cards may look more consistent.
  • You do not need to insert manual br elements for every screen size.
  • When the container width changes, the browser can create a new, more balanced composition.

How to Add text-wrap: balance to an Elementor Heading

First, open the required page or template and select the Heading widget. In the Advanced tab, find the CSS Classes field and add a class such as balanced-title, without a dot at the beginning.

Then add the CSS in the location your site uses for custom styles: the theme’s global styles, the Customizer, a child theme file, or the Custom CSS field if that option is available in your Elementor configuration.

The selector below is intended for a situation where the balanced-title class is added directly to the heading widget. Elementor outputs the text inside a child element with the elementor-heading-title class.

  • In CSS Classes, enter balanced-title, not .balanced-title.
  • Apply the class only to the headings that need it, rather than to every widget on the site.
  • After saving, clear the site cache if the changes do not appear immediately.
.balanced-title .elementor-heading-title {
  text-wrap: balance;
}

A Fallback Value Option

For a clear fallback scenario, you can first define standard wrapping and then apply balance. In modern browsers, the second rule will take effect, while environments without support for the property will retain the standard behavior.

.balanced-title .elementor-heading-title {
  text-wrap: normal;
  text-wrap: balance;
}

Where Text Balancing Works Best

The property usually provides the greatest practical benefit for short and medium-length headings that occupy approximately two to four lines. Examples include card headings, service names, promotional blocks, section headings, and the main heading of a hero block.

The effect depends not only on text length but also on the container width, font size, line height, and internal spacing. The same heading may look good on desktop but require separate testing on a tablet or smartphone.

Balancing does not replace editorial work. If a heading is too long, complex, or contains several meaningful parts, shortening it is usually better than trying to fix its composition with CSS alone.

  • Apply balance to headings rather than large blocks of text.
  • Do not use it as a way to conceal a container that is too narrow.
  • Compare headings in the actual card context, together with the button and description.

Why You Should Not Apply balance to Large Paragraphs

text-wrap: balance is primarily intended for small text blocks where improving the visual distribution of lines matters. For a large paragraph, balancing the entire text may be inappropriate: the expected line width will change, and reading may feel less natural.

For descriptions and regular text, you can consider text-wrap: pretty. This property is intended to create cleaner wrapping and reduce awkward short lines, but its support and actual result depend on the browser.

Use pretty selectively. Do not add it across the entire site without testing: compare the text before and after the change on the devices that matter.

  • For headings: text-wrap: balance.
  • For text descriptions: text-wrap: pretty when appropriate.
  • For long articles and instructions, first check readability, column width, and line height.
.elementor-widget-text-editor {
  text-wrap: pretty;
}

Testing the Heading on Different Screens

After adding the CSS, check the page not only in Elementor’s editing mode but also in preview or on the published page. Balancing can change the number of lines, so the section height may sometimes increase or decrease.

Review at least desktop, tablet, and mobile widths. Pay particular attention to the narrowest screens: the heading may move to an additional line, while the button or a neighboring element may shift downward.

Do not test only one successful example. Open all cards in the section, including long and short headings, different languages, and versions containing numbers. Word length and localization differences can affect wrapping.

  • Make sure the heading does not extend beyond the card.
  • Check whether unwanted space has appeared before the button.
  • Compare the height of identical cards in the same row.
  • Check contrast, font size, and readability after the wrap changes.
  • Refresh the page without cache if the browser is displaying an older version of the styles.

Common Mistakes and Alternatives

The most common mistake is adding the class with a dot or inserting a CSS selector into the CSS Classes field. The field should contain only the class name. Another typical reason for no visible effect is that the class was added to one element while the selector was written as if the class were located at a different level of the DOM.

You should not force headings into alignment with manual br elements across all responsive versions. This approach may look good on one screen but create an awkward wrap on another. A manual break is appropriate only when it is part of a deliberate composition and has been tested at the required widths.

If balance does not produce the desired result, first check the container width, the heading’s maximum width, the font size, and the text itself. A small adjustment to these parameters is often more effective than adding more CSS rules.

  • Do not confuse the CSS Classes field with the ID field.
  • Do not add !important unnecessarily: first check the selector specificity.
  • Do not give cards the same fixed height just to hide differences in heading length.
  • Do not draw conclusions from a single browser or screen size.

Frequently asked questions

Do I need a separate plugin for text-wrap: balance in Elementor?

No. This is a standard CSS property that you can add through your site’s custom styles. You only need to assign a class to the heading widget and use the correct CSS selector.

Why does text-wrap: balance not change the heading?

Check whether the class was added without a dot, whether the CSS is loaded on the page, and whether the selector matches the widget structure. The result may also be unnoticeable for a short heading that already has balanced lines.

Can I apply balance to every heading on the site?

Technically, this is possible, but it is safer to start with individual classes. Different templates, column widths, and heading types may require different behavior.

Will the block become taller after balancing?

Sometimes the heading may move to a different number of lines. That is why you should check the cards, spacing, buttons, and mobile version after making the change.

What should I use for card text: balance or pretty?

For a card title, balance is usually more appropriate, while pretty can be tested for the description. Do not apply either property automatically to long paragraphs: prioritize readability when evaluating the result.

Conclusion

text-wrap: balance is a simple way to improve the composition of Elementor headings without manually inserting line breaks. Add a separate CSS class to the required widget, apply the selector to elementor-heading-title, and check the result at all key screen widths.

The property delivers the best results for short headings in cards, sections, and hero blocks. Use it carefully for large paragraphs, and consider text-wrap: pretty only after visually testing the result.

← All Elementor materials