Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic add empty space between elements

I was wondering how to add space between two stacked buttons in ionic.

I have two buttons and I want space between them and not between anything else that I might have on the page.

What I want is a placeholder div like component that I can just drop which does this for me.

What I am not looking for is to add gird or to change the CSS.

In short I am looking for a quick and dirty way to add some space.

like image 991
krv Avatar asked Nov 03 '25 09:11

krv


2 Answers

You can use ion-row where h is whatever height you want. Make sure you add unit at the end of h (px, vw, vh, rem, etc.)

<ion-row style="height: h"></ion-row>
like image 178
Bao Pham Avatar answered Nov 05 '25 23:11

Bao Pham


You can add &nbsp; between the two buttons.

like image 26
Houssem Avatar answered Nov 05 '25 22:11

Houssem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!