# Styling ionic app - which units to use in css

**URL:** <https://forum.ionicframework.com/t/styling-ionic-app-which-units-to-use-in-css/120608>\
**Category:** ionic-v3\
**Created:** [February 6, 2018, 8:39am UTC](https://forum.ionicframework.com/t/styling-ionic-app-which-units-to-use-in-css/120608 "2018-02-06T08:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vartex05](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vartex05](https://forum.ionicframework.com/u/Vartex05)\
**Post date:** [February 6, 2018, 8:39am UTC](https://forum.ionicframework.com/t/styling-ionic-app-which-units-to-use-in-css/120608/1 "2018-02-06T08:39:18Z")

</div>

Hi, i have maybe a little dumb question, but what is the prefered unit to use in css of ionic app, to be responsive? As i find out so far, it is better to use % or other relative units and dont use px, is that true? Are there any best practices to follow on this topic?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:51pm UTC](https://forum.ionicframework.com/t/styling-ionic-app-which-units-to-use-in-css/120608/2 "2021-07-19T21:51:42Z")

</div>

Closed on July 19, 2021, 9:51pm UTC


