# Running app with --prod but css issues even with latest ionic

**URL:** <https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224>\
**Category:** ionic-v3\
**Created:** [September 13, 2017, 10:02am UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224 "2017-09-13T10:02:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil94dhar](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@Nikhil94dhar](https://forum.ionicframework.com/u/Nikhil94dhar)\
**Post date:** [September 13, 2017, 10:02am UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/1 "2017-09-13T10:02:04Z")

</div>

my html

```auto
<ion-footer class="row">
  <ion-item class="cancel" (click)="cancel()">Cancel</ion-item>  
  <ion-item class="submit-button" (click)="changePassword()" id="change_password">Update</ion-item>  
</ion-footer>

```

my scss

```auto
.submit-button,.cancel{
    text-align: center;
    background: #c91a23;
    color: white;
    width: 50%;
}
.cancel{
    border-right: solid 1px white;
}

```

I am supposed to get like

![temp](https://global.discourse-cdn.com/ionicframework/original/3X/1/2/12fea8e1f53db4868948824bb50795dd2a0e0125.PNG)

but getting like

![temp](https://global.discourse-cdn.com/ionicframework/original/3X/2/f/2f1855db7800facb162194be547b5c91909ac3bf.PNG)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 13, 2017, 10:59am UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/2 "2017-09-13T10:59:18Z")

</div>

Did you remote debug the problem on the device already?  
Follow these instructions here to debug the problem in Safari dev tools:  
[https://ionic.zone/debug/remote-debug-your-app#ios](https://ionic.zone/debug/remote-debug-your-app#ios)  
Follow these instructions here to debug the problem in Chrome dev tools:  
[https://ionic.zone/debug/remote-debug-your-app#android](https://ionic.zone/debug/remote-debug-your-app#android)  
Look at the console and network tabs for errors.

---

<div class="post-metadata">

**Author:** ![Nikhil94dhar](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@Nikhil94dhar](https://forum.ionicframework.com/u/Nikhil94dhar)\
**Post date:** [September 13, 2017, 11:33am UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/3 "2017-09-13T11:33:13Z")

</div>

in chrome and in emulator works fine but not in device

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 13, 2017, 12:19pm UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/4 "2017-09-13T12:19:10Z")

</div>

Yes, then remote debug on the device.

---

<div class="post-metadata">

**Author:** ![Nikhil94dhar](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@Nikhil94dhar](https://forum.ionicframework.com/u/Nikhil94dhar)\
**Post date:** [September 13, 2017, 12:41pm UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/5 "2017-09-13T12:41:11Z")

</div>

thanks man got css back …

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 13, 2017, 1:01pm UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/6 "2017-09-13T13:01:47Z")

</div>

What caused it? Share so other readers can learn as well.

---

<div class="post-metadata">

**Author:** ![Nikhil94dhar](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@Nikhil94dhar](https://forum.ionicframework.com/u/Nikhil94dhar)\
**Post date:** [September 13, 2017, 2:45pm UTC](https://forum.ionicframework.com/t/running-app-with-prod-but-css-issues-even-with-latest-ionic/105224/7 "2017-09-13T14:45:16Z")

</div>

we have class `row` and class `col` in ionic html where row width will be 100% and inside row class col classes will divide that row width percentage accordingly but in `ionic cordova run --prod` it didn’t work so I manually gave width row to 100% and col accordingly

```auto
in above images I gave "cancel class width to 50% " and " update to 50% "
and to cancel I gave " float left " so I got like 1st image 

```

thanks
