On this page
What this issue is
Text expansion is the way text gets longer when you translate it. A short English label such as Sign up becomes Jetzt kostenlos registrieren in German. German also uses long compound words, for example Datenschutzerklärung, which cannot break across lines by default.
Buttons designed around English text often have a fixed width, a fixed height, white-space: nowrap or a set font size. When the longer label does not fit, the text spills outside the button, gets clipped, wraps onto a second line that hides behind the edge, or pushes other elements out of place.
Why it costs you leads or sales
A call to action that is cut off or overlaps other elements is harder to read and looks untrustworthy. Visitors may not understand what the button does, or on mobile may not be able to tap it properly. The impact is usually small per page, but it hits the buttons that matter most: add to cart, submit, book now.
- German landing pagePage loads in the right language
- Button labelText overflows or is cut off
- Form or cartFewer visitors reach it
- Lead or saleNot completed
A clipped call to action on the translated page weakens every step after it.
Before
- Width set to 140px
- white-space: nowrap
- Label overflows the edges
- Mobile layout pushed sideways
After
- min-width with padding
- Text may wrap to two lines
- Long words hyphenate
- Button grows to fit the label
How to check if your site has it
List your longest languages
German, Finnish, Dutch, Russian, Portuguese and French usually expand the most. Check these first.
Open key pages in each language
Check the homepage, landing pages, forms, cart and checkout, including navigation, hero buttons and form submit buttons.
Test narrow screens
In browser developer tools, use device mode at 320px and 375px wide. Narrow screens expose problems first.
Try the longest strings
Look at buttons with two or three words, error messages and states such as Loading or Added to cart, which also change the text.
Try browser zoom
Set text zoom to 150% or 200%. Buttons that survive this usually handle long translations well.
How to fix it
The principle is the same everywhere: size the button from its content, not from a fixed number. Then adjust within your platform or theme.
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 120px;
min-height: 44px;
height: auto;
padding: 12px 24px;
white-space: normal;
text-align: center;
overflow-wrap: anywhere;
hyphens: auto;
line-height: 1.25;
}Find the button style
In Appearance > Customize > Additional CSS, or your page builder's button settings, remove fixed width and height values.
Add flexible CSS
Paste the CSS above, changing the selector to your theme's button class. Check that your translation plugin outputs the correct lang attribute.
Edit theme CSS
In Online Store > Themes > Edit code, find the button rules in the theme's CSS (the file name depends on the theme) and replace fixed widths with min-width and padding.
Check translated strings
Preview each language in the theme editor and look at the Add to cart and checkout buttons.
Set size to auto
Select the button, and in the Style panel set Width and Height to Auto. Use padding for size.
Test locales
If you use Webflow Localization, switch locales in the Designer and check each breakpoint.
Resize with the translated text
In the editor, switch to each language in the multilingual menu and widen or restyle buttons whose text does not fit. Check the mobile editor separately.
Adjust button size
In Site Styles > Buttons, choose a size that fits long labels, or add custom CSS under Design > Custom CSS to remove fixed widths.
Replace fixed sizes
Search your CSS for button rules using width, height or white-space: nowrap and replace them with the flexible pattern above.
Use flex or grid layouts
Make button rows wrap with flex-wrap: wrap so long labels do not push siblings off screen.
How to confirm it's fixed
- Every button label is fully visible in each language
- No text touches or overflows the button edge
- Buttons stay tappable (about 44px high) on a 320px screen
- No horizontal scrolling appears on translated pages
- Long words hyphenate or wrap instead of spilling out
- Hover, loading and error states also fit
How to prevent it happening again
Design with growth in mind. A common rule of thumb is to leave room for labels noticeably longer than the English text. Use a stress test: replace labels with a long placeholder such as Datenschutzerklärung akzeptieren during design review.
- Never set a fixed width or height on buttons
- Add a translated-page review to your release checklist
- Review new buttons and copy in your longest language first
- Always declare the lang attribute on each language version
- Brief translators on character limits for buttons
How FunnelGuard handles this
FunnelGuard does not check for text expansion or visual layout problems like this yet. It is a possible future check. Today it does not judge whether a button looks right.
What it does cover nearby: a robot visitor runs your real customer journeys on a schedule, and if a button is so badly covered or broken that the journey cannot continue, the step fails and you get one alert with a screenshot and a likely cause. It also checks tracking hits and that test leads arrive. That does not replace a visual review of each language.
To watch for it yourself, review each language version after every design or translation change using the checks above. Browser developer tools device mode or a visual regression tool can help. FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card) and a free read-only website audit.
Questions people ask
Why is my button text cut off in German?
German words and phrases are usually longer than English ones, and buttons with a fixed width or height cannot grow. Remove fixed sizes, use padding and min-width, and allow the text to wrap.
How much longer is German text than English?
It varies by phrase, but German labels are often noticeably longer than English, and short UI strings expand proportionally the most. Plan button space with generous room instead of relying on one fixed percentage.
How do I make a button fit any language?
Size it from its content: use min-width, padding, height: auto, white-space: normal and hyphens: auto. Also set the correct lang attribute on the page.
Why is hyphens: auto not working?
The browser needs to know the page language to hyphenate. Add a lang attribute such as <html lang="de"> and make sure the element is not set to white-space: nowrap.
Which languages need the most space on buttons?
German, Finnish, Dutch and Russian are often among the longest, and French and Portuguese tend to run longer than English too. Test the longest languages you support first.
Does text expansion affect mobile more than desktop?
Yes, narrow screens leave less room, so overflow and awkward wrapping show up first at around 320 to 375px wide. Always test translated pages in mobile view.
Can FunnelGuard detect broken button layouts from long translations?
No. FunnelGuard does not check visual layout or text expansion yet. It would only notice if the button became impossible to use and a journey step failed.
Related issues
- PRF-352Mixed languages on one page (untranslated strings)Fix guide
- PRF-353Untranslated form labels/errors on translated pageFix guide
- PRF-364RTL languages render left-to-right / layout brokenFix guide
- PRF-366Character encoding broken (mojibake, é instead of é)Fix guide
- PRF-369Cookie banner in wrong languageFix guide
- PRF-354Untranslated checkout or emailsFix guide