Center Horizontal icon
Used to center align content. Contains orientation variants. The 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 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 { CenterHorizontal24Regular, CenterHorizontal24Filled } from "@fluentui/react-icons";
export function Example() {
return <CenterHorizontal24Regular aria-label="Center Horizontal" />;
}Use it in HTML
Reference the SVG file directly:
<img src="https://fluenticons.co/icons/ic_fluent_center_horizontal_24_regular.svg" width="24" height="24" alt="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="M4.5 3.75C4.5 3.33579 4.16421 3 3.75 3C3.33579 3 3 3.33579 3 3.75V20.25C3 20.6642 3.33579 21 3.75 21C4.16421 21 4.5 20.6642 4.5 20.25V3.75ZM19.5 3.75C19.5 3.33579 19.8358 3 20.25 3C20.6642 3 21 3.33579 21 3.75V20.25C21 20.6642 20.6642 21 20.25 21C19.8358 21 19.5 20.6642 19.5 20.25V3.75ZM10.25 5C9.00736 5 8 6.00736 8 7.25V16.75C8 17.9926 9.00736 19 10.25 19H13.75C14.9926 19 16 17.9926 16 16.75V7.25C16 6.00736 14.9926 5 13.75 5H10.25ZM9.5 7.25C9.5 6.83579 9.83579 6.5 10.25 6.5H13.75C14.1642 6.5 14.5 6.83579 14.5 7.25V16.75C14.5 17.1642 14.1642 17.5 13.75 17.5H10.25C9.83579 17.5 9.5 17.1642 9.5 16.75V7.25Z" 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/center_horizontal_24_regular.svg";Details
| Name | Center Horizontal |
|---|---|
| Styles | Regular (outlined), Filled |
| Size | 24 × 24 px (scalable SVG) |
| Regular (outlined) file | ic_fluent_center_horizontal_24_regular.svg |
| Filled file | ic_fluent_center_horizontal_24_filled.svg |
| React components | CenterHorizontal24Regular, CenterHorizontal24Filled |
| License | MIT (© Microsoft Corporation) |