# Why my footer has a margin issue with ion-footer?

**URL:** <https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564>\
**Category:** ionic-v1\
**Created:** [January 28, 2015, 9:40pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564 "2015-01-28T21:40:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maketroli](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maketroli/32/72294_2.png) [@Maketroli](https://forum.ionicframework.com/u/Maketroli)\
**Post date:** [January 28, 2015, 9:40pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/1 "2015-01-28T21:40:32Z")

</div>

I am having a little issue with a margin on the left side of my footer, as in the image:

[![](http://storage2.static.itmages.com/i/15/0128/h_1422480423_9852752_a2979f5b95.png) ](http://storage2.static.itmages.com/i/15/0128/h_1422480423_9852752_a2979f5b95.png)

and this is the code I am using for my template:

```auto
<ion-footer-bar align-title="left" ng-controller="FooterController">
  <div class="tabs tabs-icon-top tabs-positive tabs-striped">
    <a class="tab-item active" href="#/app/sports">
      CONTENT
    </a>
  </div>
</ion-footer-bar>

```

but if I do the following, everything works properly:

```auto
<div class="tabs tabs-icon-top tabs-striped" ng-controller="FooterController">
  <a class="tab-item active" href="#/app/sports">
    <i class="icon ion-ios-americanfootball"></i>
      CONTENT
  </a>
</div>

```

the issue here seems to be the `<ion-footer>` but why ?

---

<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:** [January 29, 2015, 12:32am UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/2 "2015-01-29T00:32:28Z")

</div>

That is not the way you should have tabs setup .

Use ion-tabs and ion-tab, not ion-footer and a link

---

<div class="post-metadata">

**Author:** ![Maketroli](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maketroli/32/72294_2.png) [@Maketroli](https://forum.ionicframework.com/u/Maketroli)\
**Post date:** [January 29, 2015, 3:54pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/3 "2015-01-29T15:54:39Z")

</div>

but anyways if I do it the way you say, the issue persists once I put the `ion-footer`, so your comment is no helping me

---

<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:** [January 29, 2015, 3:59pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/4 "2015-01-29T15:59:58Z")

</div>

Not if you use

```auto
<ion-tabs class="tabs-icon-top tabs-positive">

  <ion-tab title="Home" icon="ion-home" href="#/tab/home">
    <ion-nav-view name="home-tab"></ion-nav-view>
  </ion-tab>

  <ion-tab title="About" icon="ion-ios7-information" href="#/tab/about">
    <ion-nav-view name="about-tab"></ion-nav-view>
  </ion-tab>

  <ion-tab title="Contact" icon="ion-ios7-world" ui-sref="tabs.contact">
    <ion-nav-view name="contact-tab"></ion-nav-view>
  </ion-tab>

</ion-tabs>

```

Anyways, it comes down to that is not the intended purpose of the ion-footer.  
What you want is the ion-tabs.

---

<div class="post-metadata">

**Author:** ![Maketroli](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maketroli/32/72294_2.png) [@Maketroli](https://forum.ionicframework.com/u/Maketroli)\
**Post date:** [January 29, 2015, 4:03pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/5 "2015-01-29T16:03:31Z")

</div>

exactly what I asked. Right now my code works as you saw it above.

My issue is, if I add `ion-footer` on top of `ion-tabs`, then the margin comes up.

---

<div class="post-metadata">

**Author:** ![Maketroli](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maketroli/32/72294_2.png) [@Maketroli](https://forum.ionicframework.com/u/Maketroli)\
**Post date:** [January 29, 2015, 4:08pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/6 "2015-01-29T16:08:11Z")

</div>

and also, I am not working with routes in this part, so the way you say: still not the proper one.

---

<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:** [January 29, 2015, 4:21pm UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/7 "2015-01-29T16:21:42Z")

</div>

Then don’t add the footer, or do this.

```auto
<ion-footer-bar class="tabs tabs-icon-top tabs-positive tabs-striped" ng-controller="FooterController">
    <a class="tab-item active" href="#/app/sports">
      CONTENT
    </a>
</ion-footer-bar>

```

---

<div class="post-metadata">

**Author:** ![nonumber1989](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nonumber1989](https://forum.ionicframework.com/u/nonumber1989)\
**Post date:** [May 24, 2015, 10:58am UTC](https://forum.ionicframework.com/t/why-my-footer-has-a-margin-issue-with-ion-footer/16564/8 "2015-05-24T10:58:52Z")

</div>

I have try the way you mentioned , but seems not works well.  
We also want add more components in the footer.

```
<ion-footer-bar class="bar-balanced">
<div class="tabs tabs-secondary tabs-icon-top">
    <div class="tab-item" ng-click="test()">
        <i class="icon ion-ios-color-filter"></i>
        Color
    </div>
    <div class="tab-item" ng-click="showPopup()">
        <i class="icon ion-ios-calculator-outline"></i>
        Size
    </div>
    <div class="tab-item" ng-click="showActionSheet()">
        <i class="icon ion-bag"></i>
        Add to cart
    </div>
</div>

<!--<button class="button button-icon icon ion-ios-cart-outline" ng-click="showPopup()"></button>-->
<!--<h1 class="title"></h1>-->
<!--<button class="button button-icon icon ion-ios-information-outline" ng-click="showActionSheet()"></button>-->

```
