Skip to content

Instantly share code, notes, and snippets.

@tcaddy
Created February 21, 2012 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcaddy/1878894 to your computer and use it in GitHub Desktop.
Save tcaddy/1878894 to your computer and use it in GitHub Desktop.
override jQuery Mobile fieldcontain padding and bottom border for portrait mode
@media all and (max-width: 450px){
.ui-field-contain, .ui-mobile fieldset.ui-field-contain {
border-width: 0 !important;
padding: 0 !important;
margin: 1em 0 !important;
}
}
@tcaddy
Copy link
Author

tcaddy commented Feb 21, 2012

This will override the top/bottom padding and the bottom border of a

element. It will have same margin as landscape mode layout.

Put this in your CSS file and it will override jQuery Mobile CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment