Chris Ryhal
Posts: 0
Joined: Fri Aug 15, 2014 1:09 pm

Ionic Modal Size

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Ionic Modal Size

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

Hendri Harmoko Lee
Posts: 0
Joined: Wed Aug 17, 2016 1:19 pm

Ionic Modal Size

it doesn't work

Hendri Harmoko Lee
Posts: 0
Joined: Wed Aug 17, 2016 1:19 pm

Ionic Modal Size

i'm able to change the width not the height

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Ionic Modal Size

Hello Hendri,

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

Hendri Harmoko Lee
Posts: 0
Joined: Wed Aug 17, 2016 1:19 pm

Ionic Modal Size

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Ionic Modal Size

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

Safeer Khan
Posts: 0
Joined: Tue Oct 03, 2017 8:19 am

Ionic Modal Size

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;
}

Return to “Issues”