Align Button In Ionic Framework


Align Button In Ionic Framework : Sometimes we need to align the buttons left or right in ionic framework. In this tutorial we are going to explain how you can text align left, right or center in Ionic. We will explain the examples with online demo.


Align Button In Ionic Framework

You can align left or right buttons in ionic framework as below. Let us go one by one.

Ionic Button – Left Align Example

Here is an example to add left align of a button.

Align Button In Ionic Framework : Left Align Example

<div class="row">
   <div class="col text-left">
 <button class="button button-dark">
  button-dark
</button>

Try it »

If you run the above example it will look something like this

Ionic Button Left align Example

Ionic Button – Right Align Example

Here is an example to add left align of a button.

Align Button In Ionic Framework : Right Align Example

<div class="row">
   <div class="col text-right">
 <button class="button button-dark">
  button-dark
</button>

Try it »

If you run the above example it will look something like this

Ionic Button Right align Example

Ionic Button – Center Align Example

Here is an example to add left align of a button.

Align Button In Ionic Framework : Center Align Example

<div class="row">
   <div class="col text-center">
 <button class="button button-dark">
  button-dark
</button>

Try it »

If you run the above example it will look something like this

Ionic Button Center Align Example


Advertisements

Add Comment

📖 Read More