0

The documentation uses a fieldset with a legend to tell the user what to do. But I would like to use the full width of the screen.

If I remove the legend, then there is a blank column on the right-hand side now instead of the left.

Q: How can I use the entire width of the screen when asking for radio button input?

Gajotres
  • 57,309
  • 16
  • 102
  • 130
Phillip Senn
  • 46,771
  • 90
  • 257
  • 373

1 Answers1

1

Working example : http://jsfiddle.net/Gajotres/e3Z6w/

This css override will fix your problem. It works on radio button and checkboxes.

.ui-controlgroup-label {
    width: 100% !important;
}
Gajotres
  • 57,309
  • 16
  • 102
  • 130
  • Thanks Gajotres! ui-controlgroup-label didn't work for me, but .ui-field-contain .ui-controlgroup-controls {} did work. – Phillip Senn May 17 '13 at 20:20
  • How so? It is working in an example. Your solution has a problem, while label is indeed 100% of a page label text is still 20% of a available page. This example is made in jQuery Mobile 1.3.1 – Gajotres May 17 '13 at 20:24