Align Center Horizontal icon
Used to align content. The Align Center Horizontal icon is part of Microsoft's Fluent UI System Icons, available here in filled and regular (outlined) styles on a 24 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.
Use the Align Center Horizontal icon in React
Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.
npm install @fluentui/react-icons
import { AlignCenterHorizontal24Regular, AlignCenterHorizontal24Filled } from "@fluentui/react-icons";
export function Example() {
return <AlignCenterHorizontal24Regular aria-label="Align Center Horizontal" />;
}Use it in HTML
Reference the SVG file directly:
<img src="https://fluenticons.co/icons/ic_fluent_align_center_horizontal_24_regular.svg" width="24" height="24" alt="Align Center Horizontal"> Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.25 12.75C21.6642 12.75 22 12.4142 22 12C22 11.5858 21.6642 11.25 21.25 11.25H20V8.75C20 7.50736 18.9926 6.5 17.75 6.5H15.25C14.0074 6.5 13 7.50736 13 8.75V11.25H11V6.75C11 5.50736 9.99264 4.5 8.75 4.5H6.25C5.00736 4.5 4 5.50736 4 6.75V11.25H2.75C2.33579 11.25 2 11.5858 2 12C2 12.4142 2.33579 12.75 2.75 12.75H4V17.25C4 18.4926 5.00736 19.5 6.25 19.5H8.75C9.99264 19.5 11 18.4926 11 17.25V12.75H13V15.25C13 16.4926 14.0074 17.5 15.25 17.5H17.75C18.9926 17.5 20 16.4926 20 15.25V12.75H21.25ZM18.5 8.75V15.25C18.5 15.6642 18.1642 16 17.75 16H15.25C14.8358 16 14.5 15.6642 14.5 15.25V8.75C14.5 8.33579 14.8358 8 15.25 8H17.75C18.1642 8 18.5 8.33579 18.5 8.75ZM9.5 6.75L9.5 17.25C9.5 17.6642 9.16421 18 8.75 18H6.25C5.83578 18 5.5 17.6642 5.5 17.25V6.75C5.5 6.33579 5.83579 6 6.25 6L8.75 6C9.16421 6 9.5 6.33579 9.5 6.75Z" fill="currentColor"/></svg>Use it from the SVG package
Microsoft's @fluentui/svg-icons package contains the raw SVG files, which works well with bundlers that import SVGs:
npm install @fluentui/svg-icons
import icon from "@fluentui/svg-icons/icons/align_center_horizontal_24_regular.svg";Details
| Name | Align Center Horizontal |
|---|---|
| Styles | Regular (outlined), Filled |
| Size | 24 × 24 px (scalable SVG) |
| Regular (outlined) file | ic_fluent_align_center_horizontal_24_regular.svg |
| Filled file | ic_fluent_align_center_horizontal_24_filled.svg |
| React components | AlignCenterHorizontal24Regular, AlignCenterHorizontal24Filled |
| License | MIT (© Microsoft Corporation) |