▸ All articles

Trilingual websites (DE/FR/EN): how to keep the layout from breaking.

In Switzerland, many websites are designed in English and translated into German and French right before launch. The result is predictable: clipped headlines, two-line menus and buttons overflowing on mobile. Here is how to prevent that technically from day one.

Listen to this articleBuilt-in browser voice · zero trackers
At a glance
+20–30%average French text expansion vs English
34 charsfor a single German compound noun without spaces
0 pxfixed width you should put on multilingual buttons

Why one language breaks a layout built for another.

The same idea never occupies the same space across languages. English is compact; French typically runs 20 to 30% longer; German stacks long compound nouns without spaces that refuse to wrap on their own.

Visual example · Same button, three lengths
ENGet in touch ▸12 ch.
FRPrendre contact ▸15 ch.
DEKontakt aufnehmen ▸17 ch.

Look at how ordinary interface labels expand across the three languages:

ElementENFRDE
NavigationWork (4)Travaux / Réalisations (12)Ausgewählte Arbeiten (20)
ButtonGet in touch (12)Prendre contact (15)Kontakt aufnehmen (17)
Short headingAccessibility (13)Accessibilité (13)Barrierefreiheit (16)
Legal noticeBusiness ID (11)Numéro d'identification (23)Unternehmens-Identifikationsnummer (34)
When a mockup is built strictly around “Work” and “Get in touch”, German and French feel squeezed into a room that was never sized for them. The problem is rarely the copy: it is the grid.

1. Design the grid for the hardest language first.

Before writing CSS, test your header, cards, buttons and headings with real German and French copy, never with Lorem ipsum or English alone.

DEWord width

Stress-tests long compound nouns inside narrow columns.

FRBlock height

Stress-tests sentence expansion and line count inside cards.

ENMinimum density

Checks that concise copy never leaves awkward gaps.

2. In CSS Grid, always write minmax(0, 1fr).

This is the most common mobile layout trap. Writing grid-template-columns: 1fr 2fr actually behaves like minmax(auto, 1fr): the column refuses to shrink narrower than its longest unbreakable word. One long German noun or display heading pushes the entire layout past the screen edge.

/* Fragile: a long word can push the column past the viewport */
.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

/* Resilient: the column always stays within the screen */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.grid > * {
  min-width: 0;
}

The same rule applies in Flexbox: adding min-width: 0 on text containers prevents horizontal overflow that often stays invisible until you test on a real phone.

3. Break words cleanly, never randomly.

To stop overflow quickly, it is tempting to reach for overflow-wrap: anywhere. The downside is ugly mid-word splits without hyphens (TRANSCREATI / ON or ARCHITECTUR / E). Instead, combine the HTML language attribute with proper CSS hyphenation and fluid sizing:

<html lang="de"> <!-- required for the browser's hyphenation dictionary -->
h1, h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
  • lang="en" / "fr" / "de" tells the browser which hyphenation dictionary to load.
  • hyphens: auto inserts a clean hyphen only when a word truly needs to break.
  • clamp() scales headings smoothly between phone and desktop widths so words usually fit without breaking at all.
  • Avoid white-space: nowrap on headings: a short French heading may fit on one mobile line while the English or German equivalent clips off-screen.

4. Buttons, filters and menus: no fixed widths.

Never lock buttons to a fixed pixel width like width: 160px. Use horizontal padding, optional min-width, and let filter or button rows wrap cleanly with flex-wrap: wrap and consistent gap.

Keep top-level navigation concise (4 to 5 short items) with balanced labels across all three languages.

5. Check diacritics and Swiss typography early.

Before committing to a typeface, test French accents (é, è, ê, à, ç, œ), German umlauts (ä, ö, ü, Ä, Ö, Ü) and Swiss guillemets (« »).

Key detail for German-speaking Switzerland: written Swiss Standard German uses ss instead of ß (gross, Strasse, weiss). Readers notice immediately whether a site was genuinely built for Switzerland or copy-pasted from Germany.

6. Multilingual SEO fundamentals.

A resilient grid only pays off if search engines index all three versions cleanly:

  • One dedicated URL per language (/en/, /fr/, /de/) rather than swapping text in JavaScript on a single URL.
  • Reciprocal hreflang links on every page plus x-default, and a self-referencing canonical per language.
  • Native titles, meta descriptions and aria-label attributes in every language—including screen-reader labels like Filters / Filtres / Filter.

Quick pre-launch checklist.

  1. Open every page in EN, FR and DE at real phone width (375–390px) and confirm zero horizontal scroll.
  2. Click every filter, menu and button in all three languages.
  3. Check that no heading splits mid-word without a proper hyphen.
  4. Verify lang, title, meta description and hreflang on every route.

Designing language and grid together from the first sketch is what keeps a multilingual site fast, legible and calm to use. You can explore more in my transcreation and digital architecture services, the bilingual Studio BK case study, or the FAQ.

A project to discuss?

Get in touch ▸