align horizontal center icon

align-horizontal-center from Carbon by IBM · Outline · Actions · Apache-2.0 Free for personal and commercial use.

Name
align-horizontal-center
Set
Carbon
Style
Outline
Category
Actions
Viewbox
32×32
License
Apache 2.0

The same icon in other sets

More actions icons from Carbon

Use the align horizontal center icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M24 18h-7v-4h3a2.003 2.003 0 0 0 2-2V8a2.003 2.003 0 0 0-2-2h-3V2h-2v4h-3a2.003 2.003 0 0 0-2 2v4a2.003 2.003 0 0 0 2 2h3v4H8a2.003 2.003 0 0 0-2 2v4a2.003 2.003 0 0 0 2 2h7v4h2v-4h7a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2M12 8h8v4h-8Zm12 16H8v-4h16Z"/></svg>

React

import type { SVGProps } from "react";

export function CarbonAlignHorizontalCenter(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M24 18h-7v-4h3a2.003 2.003 0 0 0 2-2V8a2.003 2.003 0 0 0-2-2h-3V2h-2v4h-3a2.003 2.003 0 0 0-2 2v4a2.003 2.003 0 0 0 2 2h3v4H8a2.003 2.003 0 0 0-2 2v4a2.003 2.003 0 0 0 2 2h7v4h2v-4h7a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2M12 8h8v4h-8Zm12 16H8v-4h16Z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M24 18h-7v-4h3a2.003 2.003 0 0 0 2-2V8a2.003 2.003 0 0 0-2-2h-3V2h-2v4h-3a2.003 2.003 0 0 0-2 2v4a2.003 2.003 0 0 0 2 2h3v4H8a2.003 2.003 0 0 0-2 2v4a2.003 2.003 0 0 0 2 2h7v4h2v-4h7a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2M12 8h8v4h-8Zm12 16H8v-4h16Z"/></svg>
</template>

CSS

.icon-align-horizontal-center {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M24%2018h-7v-4h3a2.003%202.003%200%200%200%202-2V8a2.003%202.003%200%200%200-2-2h-3V2h-2v4h-3a2.003%202.003%200%200%200-2%202v4a2.003%202.003%200%200%200%202%202h3v4H8a2.003%202.003%200%200%200-2%202v4a2.003%202.003%200%200%200%202%202h7v4h2v-4h7a2.003%202.003%200%200%200%202-2v-4a2.003%202.003%200%200%200-2-2M12%208h8v4h-8Zm12%2016H8v-4h16Z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M24%2018h-7v-4h3a2.003%202.003%200%200%200%202-2V8a2.003%202.003%200%200%200-2-2h-3V2h-2v4h-3a2.003%202.003%200%200%200-2%202v4a2.003%202.003%200%200%200%202%202h3v4H8a2.003%202.003%200%200%200-2%202v4a2.003%202.003%200%200%200%202%202h7v4h2v-4h7a2.003%202.003%200%200%200%202-2v-4a2.003%202.003%200%200%200-2-2M12%208h8v4h-8Zm12%2016H8v-4h16Z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/carbon/align-horizontal-center.svg?color=%231a73e8&size=48