Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

Margin and padding not working inside (EDIT: text-align also)

$
0
0

@Another_User wrote:

Hello.
The padding is totally ignored in modals.

<ion-modal-view>

  <div class="bar bar-header bar-energized">
    <h1 class="title">Header</h1>
    <button class="button button-icon ion-close-circled"></button>
  </div>

    <div style="padding-top: 50px;">
        Random text
    </div>

</ion-modal-view>

Any clue why padding doesn't work at all for that div ?
Also I'm unable to center the content of the modal no matter what I found on internet...

EDIT:
Also text-align isn't working.

<div style="text-align: center;">
  Random text
</div>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>