Page 1 of 1

Ionic Modal Size

Posted: Thu Apr 21, 2016 6:37 pm
by Chris Ryhal

Does anyone have an example using the Ionic tools how to set the size of the modal so its not full screen?

I would like it basically 50% height/width


Ionic Modal Size

Posted: Thu Apr 21, 2016 7:34 pm
by Serhii Kulibaba

Hello Chris,

Thank you for contacting Appery.io support

You are able to change it's size as well as any other style with CSS class "modal", e.g.:
pre.modal {
width:100px;
height:100px;
}/pre


Ionic Modal Size

Posted: Sun Sep 11, 2016 6:11 am
by Hendri Harmoko Lee

it doesn't work


Ionic Modal Size

Posted: Sun Sep 11, 2016 6:15 am
by Hendri Harmoko Lee

i'm able to change the width not the height


Ionic Modal Size

Posted: Sun Sep 11, 2016 7:28 am
by Evgene Karachevtsev

Hello Hendri,

Please try to add weight to this rule, for example by adding !important, perhaps some default CSS rule overweights yours.


Ionic Modal Size

Posted: Sun Sep 11, 2016 8:17 am
by Hendri Harmoko Lee

it still doesnt seem to work. can you try it in your side?


Ionic Modal Size

Posted: Mon Sep 12, 2016 8:05 am
by Serhii Kulibaba

It works fine on our side. Please check the "width" property of the modal window with browsers dev tools and send us screenshot from it


Ionic Modal Size

Posted: Tue Oct 03, 2017 8:19 am
by Safeer Khan

Model Size

#packageModel .padding-content {
background: #ffffff none repeat scroll 0 0;
border-radius: 3px;
height: auto;
margin: 60% auto;
padding: 25px;
text-align: center;
width: 90%;
position: relative;
}
#packageModel {
background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
}
#packageModel .padding-content h2 {
color: #2a2a2a;
font-size: 18px;
font-weight: 500;
text-transform: capitalize;
}
#packageModel .close {
color: #D00A2D;
font-size: 20px;
position: absolute;
right: 12px;
top: 12px;
}