Testing

Justify Content Space Evenly: Browser Support, Usage, Issues

justify-content: space-evenly works in Chrome 60+, Edge 79+, Firefox 52+, Safari 11+, Opera 47+, and Samsung Internet 8.2+. See usage, fixes, and IE fallback.

Author

Prince Dewani

May 6, 2026

justify-content: space-evenly is a CSS Box Alignment keyword that spaces items along the main axis of a flex, grid, or multicol container with equal gaps between items and at container edges. Chrome 60+, Edge 79+, Firefox 52+, Safari 11+ on macOS and iOS, Opera 47+, Samsung Internet 8.2+, and modern Android Browser support it, while Internet Explorer never added support.

This guide covers what space-evenly is, browsers that support it, how it differs from space-around and space-between, usage, and known issues.

What is justify-content: space-evenly?

justify-content: space-evenly is a CSS keyword from the W3C CSS Box Alignment Module Level 3. It places items along the main axis of a flex, grid, or multicol container so that the gap between any two adjacent items, the gap before the first item, and the gap after the last item are all the same.

Which browsers does justify-content: space-evenly support?

Every modern browser supports justify-content: space-evenly, with global coverage around 96%. Chrome, Edge, Firefox, Safari, Opera, Samsung Internet, and the modern Android Browser all render the keyword on flex, grid, and multicol containers. Internet Explorer is the only mainstream browser that never added support.

Loading browser compatibility data...

justify-content: space-evenly compatibility in Chrome

Chrome supports justify-content: space-evenly from Chrome 60 on Windows, macOS, Linux, ChromeOS, and Android. Chrome 57 to 59 had partial support behind the experimental web platform features flag. Chrome 56 and earlier ignore the value and fall back to flex-start, so any user still on a pre-60 build sees a left-aligned row instead of even spacing.

justify-content: space-evenly compatibility in Edge

Microsoft Edge supports justify-content: space-evenly from Edge 79 on Windows, macOS, and Linux, since that release moved the engine to Chromium. Legacy EdgeHTML versions 16 to 18 had partial support tied to the older flexbox implementation, and EdgeHTML 12 to 15 fell back to flex-start. Modern Edge tracks Chrome version-for-version on this keyword.

justify-content: space-evenly compatibility in Firefox

Firefox supports justify-content: space-evenly from Firefox 52 on Windows, macOS, Linux, and Android. Inline use on flex containers, grid containers, and multicol containers all render without any about:config preference. Firefox shipped the Box Alignment keyword ahead of Chrome, so projects targeting Firefox-only flex layouts could rely on it earlier.

justify-content: space-evenly compatibility in Safari

Safari supports justify-content: space-evenly from Safari 11 on macOS and from Safari 11 on iOS. Safari 10.1 added partial support on flex containers only, so grid containers in that release ignore the keyword. Safari 10 and earlier fall back to flex-start and need a margin auto fallback for the same visual effect.

justify-content: space-evenly compatibility in Opera

Opera supports justify-content: space-evenly from Opera 47 on Windows, macOS, and Linux, with partial support in Opera 44 to 46. Opera Mobile picks up the same keyword from Opera Mobile 80, since both browsers ride the Chromium engine. Opera Mini does not support space-evenly because the compressed mode strips advanced flexbox alignment.

justify-content: space-evenly compatibility in Samsung Internet

Samsung Internet supports justify-content: space-evenly from Samsung Internet 8.2 on Galaxy phones and tablets, with partial support in Samsung Internet 7.2. Every shipping version after 8.2 picks up the same flex, grid, and multicol behavior as the matching Chromium release on Android.

justify-content: space-evenly compatibility in Android Browser

The modern Android Browser, which tracks Chromium, supports justify-content: space-evenly out of the box. The legacy stock Android Browser on Android 4.x and earlier ignores the keyword and falls back to flex-start. On any current Android phone, Chrome for Android replaces the legacy stock browser, so justify-content: space-evenly renders the same as on desktop Chrome.

justify-content: space-evenly compatibility in Internet Explorer

Internet Explorer does not support justify-content: space-evenly in any version. IE 10 and 11 implement an older flexbox draft and silently fall back to flex-start when the keyword appears. IE 9 and earlier ignore flexbox entirely. Microsoft has retired Internet Explorer 11, so move IE-targeted layouts to a margin auto fallback or to modern Edge.

Note

Note: justify-content: space-evenly looks consistent in Chrome, but Safari, IE, and legacy Edge still trip layouts up. Test it on real browsers and OS with TestMu AI. Try TestMu AI free!

How does space-evenly differ from space-around and space-between?

All three values distribute leftover space along the main axis of a flex, grid, or multicol container, but the gap pattern is different. The table below compares the three keywords on the dimensions that decide which one to reach for.

Dimensionspace-evenlyspace-aroundspace-between
Gap at container edgesSame as gap between itemsHalf the gap between itemsZero, items hug the edges
Gap between itemsEqual across every pairEqual across every pairEqual across every pair
Visual symmetryFully symmetrical, looks balancedEdges feel tighter than the middleItems pinned to both ends
Single-item behaviorCenters the itemCenters the itemPins the item to the start
Browser support floorChrome 60, Firefox 52, Safari 11, Edge 79Chrome 21, Firefox 20, Safari 9, IE 11 partialChrome 21, Firefox 20, Safari 9, IE 11 partial
Best forNav bars, button rows, evenly spaced cardsDecorative spacing where edges should breathe lessHeader layouts, two-end alignment, pagination
...

How do you use justify-content: space-evenly?

Set display: flex or display: grid on the parent, then add justify-content: space-evenly. The parent must have free space along the main axis, otherwise the keyword has nothing to distribute and the items collapse to flex-start.

  • Pick a flex or grid container: Add display: flex or display: grid to the parent element that holds the items you want to space.
  • Set the main-axis direction: For a flex row, leave flex-direction at the default. For a vertical stack, set flex-direction: column. The justify-content axis follows flex-direction.
  • Apply the keyword: Add justify-content: space-evenly to the same parent. Drop any conflicting margin auto on the children, since auto margins absorb the free space first.
  • Confirm the parent has free space: Give the parent a width or min-height that exceeds the total size of the children. With zero free space, every justify-content value renders the same.
  • Add a fallback for IE 11: Pair the rule with margin: auto on each child or precomputed padding so legacy browsers approximate the spacing.
  • Verify in DevTools: Inspect the parent, switch to the Computed tab, and check that justify-content reads space-evenly. If it reads flex-start, the parent is not a flex or grid container.
// Paste this into the DevTools console to confirm space-evenly support in this browser.
const probe = document.createElement("div");
probe.style.display = "flex";
probe.style.justifyContent = "space-evenly";

const computed = getComputedStyle(probe).justifyContent;

if (computed === "space-evenly") {
  console.log("justify-content: space-evenly is supported in this browser.");
  console.log("Computed value on the test element:", computed);
} else {
  console.log("justify-content: space-evenly is NOT supported. Falling back to:", computed || "flex-start");
}

// Optional: render a live demo strip to eyeball the spacing.
const demo = document.createElement("div");
demo.style.cssText = "display:flex; justify-content:space-evenly; width:300px; padding:8px; border:1px solid #888;";
["A", "B", "C"].forEach(label => {
  const item = document.createElement("span");
  item.textContent = label;
  item.style.cssText = "padding:4px 8px; background:tomato; color:#fff;";
  demo.appendChild(item);
});
document.body.appendChild(demo);

If the console prints that space-evenly is not supported, the browser is IE 11, legacy EdgeHTML, or a pre-Firefox 52 build. Every Chromium, Gecko, and WebKit release in active use logs a positive result.

What are the known issues with justify-content: space-evenly?

justify-content: space-evenly is well supported on modern engines, but a small set of cross-browser quirks still bite real layouts. The common pain points are overflow behavior, IE fallbacks, RTL surprises, and Safari-flex edge cases.

  • Overflow un-centers content: When the combined size of the items exceeds the container, space-evenly stops centering and pins items to the start, which clips the first item on small screens. The DEV community fix is to wrap the row, or to swap to safe center plus overflow auto.
  • IE 11 silently falls back to flex-start: Internet Explorer 10 and 11 ignore the keyword without warning, so the layout shifts left in IE only. Always pair the rule with margin: auto on every child or a precomputed padding fallback for IE-era audiences.
  • Single-item containers behave differently from space-around: With one child, space-evenly centers it and space-around centers it too, so swapping values feels safe. With two children, space-evenly puts a third of the free space at each edge while space-around puts a quarter, which is easy to misread visually.
  • RTL flips the visual order: In a right-to-left direction, the main axis reverses, so the first DOM child sits on the right. space-evenly still distributes equally, but designers often expect the same DOM order to render the same way, which it does not.
  • Older Safari grid containers ignore it: Safari 10.1 added space-evenly for flex only, not grid. A grid layout that relies on the keyword in Safari 10.1 falls back to start.
  • CSS validators flag the value: Some legacy CSS validators report a "value [space-evenly] is not a valid value" error because they were last updated before Box Alignment Module Level 3 stabilised. The browsers parse the value correctly even when the linter does not.
  • Margin auto wins over space-evenly: If any flex child has a margin set to auto, the auto margin absorbs the free space first and space-evenly has nothing left to distribute. Drop the auto margin or move the spacing rule to a different child set.

In my experience, the trickiest production failure is overflow on mobile viewports. A nav bar that looks centered on a 1440px desktop drops behind the left edge on a 360px Android phone, because space-evenly stops centering once the items overflow. Always test the row at a 320 to 360px width on a real device before assuming the desktop result is the truth.

...

Citations

All justify-content: space-evenly version numbers and platform notes in this guide come from these primary sources:

Author

Prince Dewani is a Community Contributor at TestMu AI, where he manages content strategies around software testing, QA, and test automation. He is certified in Selenium, Cypress, Playwright, Appium, Automation Testing, and KaneAI. Prince has also presented academic research at the international conference PBCON-01. He further specializes in on-page SEO, bridging marketing with core testing technologies. On LinkedIn, he is followed by 4,300+ QA engineers, developers, DevOps experts, tech leaders, and AI-focused practitioners in the global testing community.

Open in ChatGPT Icon

Open in ChatGPT

Open in Claude Icon

Open in Claude

Open in Perplexity Icon

Open in Perplexity

Open in Grok Icon

Open in Grok

Open in Gemini AI Icon

Open in Gemini AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Frequently asked questions

Did you find this page helpful?

More Related Hubs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests