# -ms-

> The `-ms-` CSS vendor prefix was used by Internet Explorer and legacy Edge; it is obsolete in current browsers.

> **Deprecated.** Needed only by Internet Explorer and legacy Edge, which are no longer supported. Use unprefixed properties. Use instead: [Vendor Prefixes](https://wonderium.dev/css/vendor-prefixes.md), [-webkit-](https://wonderium.dev/css/webkit-vendor-prefix.md).

## Do I still need -ms- prefixes in CSS?

The obsolete vendor prefix that Internet Explorer and legacy Edge used for experimental features like `-ms-grid` and `-ms-transform`. These browsers are no longer supported, so `-ms-` prefixes are not needed and unprefixed properties are used instead.

- Topic: Vendor Prefixes
- Type: syntax
- Browser support: Chrome: not supported, Chrome Android: not supported, Edge 12+, Firefox: not supported, Firefox Android: not supported, Safari: not supported, Safari iOS: not supported

## Example

Wrong:

```css
.layout {
  display: -ms-grid;
  -ms-grid-columns: 1fr 1fr;
}
```

Right:

```css
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
```

Only Internet Explorer and legacy Edge read `-ms-` grid properties; standard grid works in all current browsers.

## Common mistakes

- Copying `-ms-grid` and `-ms-flexbox` rules from old snippets into new projects.

## Key points

- Generated CSS has no `-ms-` declarations unless the project must support Internet Explorer.
- Grid layouts use `display: grid`, not the old `-ms-grid` syntax.
- The browser list for Autoprefixer excludes Internet Explorer so it stops adding `-ms-` prefixes.

## Interview questions

### Is it safe to remove -ms- prefixes?

Yes, unless you must support Internet Explorer. Current browsers, including Edge, ignore `-ms-` properties.

### Why does my build still output -ms- prefixes?

Your browser list probably still includes Internet Explorer. Remove it so Autoprefixer stops adding them.

## Related cards

- [Vendor Prefixes](https://wonderium.dev/css/vendor-prefixes.md)
- [-webkit-](https://wonderium.dev/css/webkit-vendor-prefix.md)
- [-moz-](https://wonderium.dev/css/moz-vendor-prefix.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/ms-vendor-prefix
- Last updated: 2026-11-25
