krv
krv

Reputation: 2910

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.

Upvotes: 3

Views: 19559

Answers (3)

Houssem
Houssem

Reputation: 320

You can add   between the two buttons.

Upvotes: 5

Vinod
Vinod

Reputation: 23

<label >Subscription Expiry: 2019=04-30 00:00:00<br><br></label>     

Subscription Type: paid

Upvotes: -1

Bao Pham
Bao Pham

Reputation: 627

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>

Upvotes: 5

Related Questions