# Ionic 2.2.0 removing css property -webkit-box-orient

**URL:** <https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344>\
**Category:** ionic-v3\
**Created:** [March 9, 2017, 4:16pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344 "2017-03-09T16:16:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnuscaicf](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jnuscaicf](https://forum.ionicframework.com/u/jnuscaicf)\
**Post date:** [March 9, 2017, 4:16pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344/1 "2017-03-09T16:16:18Z")

</div>

I have a css class that looks like the following:

```
.max-3-lines {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

```

I’m using it to limit the number of lines of text that a div shows. This has worked well until I upgraded to Ionic 2.2.0. Now, however, the div doesn’t limit lines anymore. After looking into it I found that one of the properties needed to make it work is missing. In the Chrome inspector, the class looks like this:

```
.max-3-lines {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
}

```

Ionic is apparently removing the `-webkit-box-orient` property during transpiling. I can add the property back inside the Chrome inspector, and then the div behaves as expected.

Why would this property be getting removed? Is this a bug in Ionic 2.2.0? And is there a workaround?

Thanks

---

<div class="post-metadata">

**Author:** ![ctacon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ctacon/32/89685_2.png) [@ctacon](https://forum.ionicframework.com/u/ctacon)\
**Post date:** [March 10, 2017, 1:34pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344/2 "2017-03-10T13:34:10Z")

</div>

I have the same problem and I think it is present since 2.1.0. Probably because of the new [grid](http://blog.ionic.io/build-awesome-desktop-apps-with-ionics-new-responsive-grid/)… Any solutions? Thanks!

---

<div class="post-metadata">

**Author:** ![chanphillip](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chanphillip/32/105478_2.png) [@chanphillip](https://forum.ionicframework.com/u/chanphillip)\
**Post date:** [March 16, 2017, 6:01pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344/3 "2017-03-16T18:01:36Z")

</div>

Got the same problem.

---

<div class="post-metadata">

**Author:** ![Zulbil](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zulbil/32/106805_2.png) [@Zulbil](https://forum.ionicframework.com/u/Zulbil)\
**Post date:** [March 23, 2017, 4:15pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344/4 "2017-03-23T16:15:57Z")

</div>

The same issues remains in my project. I try to limit my text in two lines and once the text is larger than the width of my div, i show the ellipsis overflow. But it doesn’t work.

---

<div class="post-metadata">

**Author:** ![agnesio](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/agnesio/32/105385_2.png) [@agnesio](https://forum.ionicframework.com/u/agnesio)\
**Post date:** [March 24, 2017, 10:33pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344/5 "2017-03-24T22:33:37Z")

</div>

Same here. I checked to make sure all of my CSS sections w/ line clamps also include the -webkit-box-orient property, and they do, but I can see in the Safari and Chrome web inspectors that that property disappears when I run on ionic serve or on an emulator/device.

---

<div class="post-metadata">

**Author:** ![Kerobyan](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@Kerobyan](https://forum.ionicframework.com/u/Kerobyan)\
**Post date:** [April 13, 2017, 12:13pm UTC](https://forum.ionicframework.com/t/ionic-2-2-0-removing-css-property-webkit-box-orient/82344/6 "2017-04-13T12:13:55Z")

</div>

You need to add the -webkit-box-orient property **Inline** , like this:  
\<`element` **style="-webkit-box-orient: vertical"** \>\<`element`\>
