Align Horizontal Center icon
griddy-icons:align-horizontal-center
The Align Horizontal Center icon (griddy-icons:align-horizontal-center) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Griddy Icons
- Author
- Zuzana Benova
- License
- MIT
- Size
- 24 × 24
- Tags
- alignhorizontal, horizontalcenter, alignhorizontalcenter
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 11.25h-2.5v-3.5c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v3.5h-3v-6.5c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v6.5H3v1.5h2.5v6.5c0 .69.56 1.25 1.25 1.25h2.5c.69 0 1.25-.56 1.25-1.25v-6.5h3v3.5c0 .69.56 1.25 1.25 1.25h2.5c.69 0 1.25-.56 1.25-1.25v-3.5H21zM9 19H7V5h2zm8-3h-2V8h2z"/></svg>How to use the Align Horizontal Center icon
React
import { Icon } from "@iconify/react";
<Icon icon="griddy-icons:align-horizontal-center" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="griddy-icons:align-horizontal-center" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="griddy-icons:align-horizontal-center" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[griddy-icons--align-horizontal-center]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/griddy-icons -->
<div class="i-griddy-icons:align-horizontal-center"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="griddy-icons:align-horizontal-center"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/griddy-icons/align-horizontal-center.svg" alt="Align Horizontal Center icon" width="24" height="24">Related icons in Griddy Icons
Align Horizontal Center icon in other icon sets
Align Horizontal Center icon FAQ
Is the Align Horizontal Center icon free for commercial use?
Yes. Griddy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Align Horizontal Center icon in React?
Install @iconify/react and render <Icon icon="griddy-icons:align-horizontal-center" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Align Horizontal Center icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/griddy-icons/align-horizontal-center.svg" alt="Align Horizontal Center icon">, or paste the SVG code inline to style it with CSS.