Reputation: 13
I am trying to customize jQuery mobile CSS to fit more form elements on a page. By poking around with Firebug I can see hidden classes that seem to be added at run time based on data-roles. Is this an HTML5 or a jQueryMobile technique (or both combined) Is this documented anywhere or do I have to discover by trial and error?
Upvotes: 1
Views: 213
Reputation: 60580
It's a jQuery Mobile thing. The idea is that you're defining structure, not styling, and jQuery Mobile is translating your structure into CSS styling at runtime. If you can avoid changing the CSS directly (and sometimes you can't), things will go more smoothly.
Have you tried using jQuery Mobile's grid layout features to position your form elements? That might work better.
Upvotes: 2