gentleface

Gentleface › Design › align-horizontal-center

align-horizontal-center icon

Align horizontal center: align horizontal centers, center horizontally. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.707 3.293C12.902 3.488 13 3.724 13 4L13 6C13 6.276 12.902 6.512 12.707 6.707C12.512 6.902 12.276 7 12 7L8 7L8 9L10 9C10.276 9 10.512 9.098 10.707 9.293C10.902 9.488 11 9.724 11 10L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L8 13L8 14.5C8 14.641 7.952 14.759 7.856 14.856C7.759 14.952 7.641 15 7.5 15C7.359 15 7.241 14.952 7.144 14.856C7.048 14.759 7 14.641 7 14.5L7 13L5 13C4.724 13 4.488 12.902 4.293 12.707C4.098 12.512 4 12.276 4 12L4 10C4 9.724 4.098 9.488 4.293 9.293C4.488 9.098 4.724 9 5 9L7 9L7 7L3 7C2.724 7 2.488 6.902 2.293 6.707C2.098 6.512 2 6.276 2 6L2 4C2 3.724 2.098 3.488 2.293 3.293C2.488 3.098 2.724 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM3 6L12 6L12 4L3 4L3 6ZM5 12L10 12L10 10L5 10L5 12Z"/></svg>
React
// Gentleface "align-horizontal-center" (line-round), MIT. https://gentleface.com/icons/align-horizontal-center
import type { SVGProps } from 'react';

export function AlignHorizontalCenterIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M12.707 3.293C12.902 3.488 13 3.724 13 4L13 6C13 6.276 12.902 6.512 12.707 6.707C12.512 6.902 12.276 7 12 7L8 7L8 9L10 9C10.276 9 10.512 9.098 10.707 9.293C10.902 9.488 11 9.724 11 10L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L8 13L8 14.5C8 14.641 7.952 14.759 7.856 14.856C7.759 14.952 7.641 15 7.5 15C7.359 15 7.241 14.952 7.144 14.856C7.048 14.759 7 14.641 7 14.5L7 13L5 13C4.724 13 4.488 12.902 4.293 12.707C4.098 12.512 4 12.276 4 12L4 10C4 9.724 4.098 9.488 4.293 9.293C4.488 9.098 4.724 9 5 9L7 9L7 7L3 7C2.724 7 2.488 6.902 2.293 6.707C2.098 6.512 2 6.276 2 6L2 4C2 3.724 2.098 3.488 2.293 3.293C2.488 3.098 2.724 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM3 6L12 6L12 4L3 4L3 6ZM5 12L10 12L10 10L5 10L5 12Z" />
    </svg>
  );
}
Vue
Vue: see /icons/align-horizontal-center.md
Svelte
Svelte: see /icons/align-horizontal-center.md
HTML img
HTML img: see /icons/align-horizontal-center.md
CSS
CSS: see /icons/align-horizontal-center.md
Data URL
Data URL: see /icons/align-horizontal-center.md
Sprite
Sprite: see /icons/align-horizontal-center.md
SwiftUI
SwiftUI: see /icons/align-horizontal-center.md
Compose
Compose: see /icons/align-horizontal-center.md
Android XML
Android XML: see /icons/align-horizontal-center.md
Flutter
Flutter: see /icons/align-horizontal-center.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

Meaning

Use it for
align horizontal centers, center horizontally
Don’t confuse with
  • align-center: centers lines of text, not objects
  • align-vertical-center: lines up middles on a horizontal axis; Lucide's align-center-vertical is this icon, so the names cross
Also fits
  • align center: align objects on a canvas to a common center (align-horizontal-centers)
Not for
  • align vertical centers (use align-vertical-center): lines up centers on a vertical axis; Lucide's align-center-horizontal is this icon, so the names cross
Tags
align, center, centre, horizontal, objects, arrange, layout, middle, axis, figma, design tool, ui design
Category
Design
Component name
AlignHorizontalCenterIcon
History
  • added

Family 11

More design icons

For agents

Metadata: /icons/align-horizontal-center.json · Markdown: /icons/align-horizontal-center.md · SVG: https://gentleface.com/svg/{style}/16/align-horizontal-center.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/align-horizontal-center.png

Feedback