- jQuery Mobile - Home
- jQuery Mobile - Overview
- jQuery Mobile - Setup
- jQuery Mobile - Pages
- jQuery Mobile - Icons
- jQuery Mobile - Transitions
- jQuery Mobile - Layouts
- jQuery Mobile - Widgets
- jQuery Mobile - Events
- jQuery Mobile - Forms
- jQuery Mobile - Themes
- jQuery Mobile - CSS Classes
- jQuery Mobile - Data Attributes
jQuery Mobile - Dialog width and margins
By default, the dialog width and margin is set in the jQuery mobile. The default width of dialog is 92.5%. On the larger screens, the dialog top margin is set larger, i.e. 10% top margin but it gets collapsed on the small screen to a small margin. This style can be overriden in your stylesheet when needed.
.ui-dialog-contain {
width: 92.5%;
max-width: 500px;
margin: 10% auto 15px auto;
padding: 0;
position: relative;
top: -15px;
}
jquery_mobile_pages.htm
Advertisements