Webflow sync, pageviews & more.
NEW

How can I automatically hyphenate long words on my Webflow site, specifically in the "NDIS Services" section on the homepage? I have tried using a CSS code snippet on H3 but it doesn't seem to have any effect. Any suggestions or insights would be greatly appreciated. Thank you!

TL;DR
  • Add hyphens: auto; and overflow-wrap: break-word; via custom CSS targeting the correct H3 element in Webflow.
  • Set lang="en" on your HTML to enable proper hyphenation rules.
  • Use a hyphenation-compatible font and verify in supported browsers to ensure it works.

You're trying to automatically hyphenate long words in the “NDIS Services” section of your Webflow homepage, but applying a CSS rule (like on an H3 element) hasn't worked. Here's how to ensure hyphenation works correctly in Webflow.

1. Enable Hyphenation with Correct CSS Properties

  • Use these CSS properties to enable hyphenation:
  • hyphens: auto;
  • overflow-wrap: break-word; (as fallback)
  • In Webflow:
  • Select the H3 element (or the correct class used in “NDIS Services”).
  • Go to the Style panel, scroll to the bottom, and click “Custom code” (under Typography if visible).
  • Or go to Page settingsBefore custom code, and target the class via custom CSS.

Example CSS for targeting an H3 in custom code:

h3 {  hyphens: auto;  overflow-wrap: break-word;}

2. Use a Language Attribute

  • Hyphenation relies on a valid language setting for the browser to apply correct breaking rules.
  • Make sure your HTML or Webflow page has a language set, such as:
  • Go to Page settings → under Advanced Settings (HTML tag), add:
    • <html lang="en">

3. Use the Right Font and Browser Support

  • Not all fonts support hyphenation. Try switching to a widely supported font like Arial or Roboto during testing.
  • Hyphenation behaves slightly differently in browsers:
  • Fully supported in Safari, Firefox, and modern Chromium-based browsers, but not reliably in older Edge/IE.
  • Test in multiple browsers to ensure hyphenation appears where supported.

4. Confirm You're Targeting the Right Element

  • Make sure that the CSS is actually targeting the element in question:
  • Double-check that the H3 in “NDIS Services” actually uses the class you’re styling.
  • Use Webflow’s built-in Navigator and Style panel to confirm.

Summary

To auto-hyphenate long words in the “NDIS Services” H3 section:

  • Use hyphens: auto; and overflow-wrap: break-word; in custom CSS.
  • Set a language attribute (lang="en") on your site or page.
  • Ensure your target element and font support hyphenation.
  • Test it in multiple browsers to verify rendering.

Following these steps should properly apply auto-hyphenation to your headings.

Rate this answer

Other Webflow Questions