Home

spaceevenly

Space evenly, or space-evenly, is a value for the justify-content property used in both CSS flexbox and CSS grid layout models. It directs the distribution of free space along the main axis so that all gaps between and around items are equal.

In a horizontal flex container, space-evenly places an equal amount of space before the first item, between

Compared with other space values, space-between creates equal gaps only between items with no gap at the

Usage considerations include browser support and layout goals. Space-evenly is supported in modern browsers but is

Related concepts include the CSS flexbox and grid specifications, the gap property for controlling spacing, and

each
pair
of
adjacent
items,
and
after
the
last
item.
The
effect
is
a
uniform
rhythm
of
spacing
across
the
entire
line.
In
grid
layouts,
space-evenly
can
be
applied
to
align
and
distribute
content
along
the
chosen
axis,
yielding
the
same
uniform
gaps
between
grid
items
and
the
container
edges.
container
ends,
while
space-around
places
half-sized
gaps
at
the
ends.
Space-evenly
resolves
these
distinctions
by
ensuring
equal
gaps
throughout,
including
at
the
container
edges.
not
available
in
older
browsers
such
as
Internet
Explorer
11.
When
compatibility
is
a
concern,
authors
may
provide
fallbacks
using
alternative
values
or
layout
techniques,
such
as
margins
or
gap
properties,
to
approximate
the
result.
alternative
distribution
values
like
space-between
and
space-around.
Space-evenly
remains
a
convenient
option
for
achieving
uniform
distribution
of
items
in
responsive
layouts.