Totally Zenned
- Join Date:
- Sep 2008
- Location:
- DownUnder, overlooking South Pole.
- Posts:
- 1,017
- Plugin Contributions:
- 2
Custom layout help wanted for Radio buttons with display:block or white-space:nowrap
For the following code, I am trying to get the radio buttons and the ENTRY_GST_TEXT components to display as separate blocks or as separate no-wraps, so that when viewed on smaller screens, each will ultimately wrap to its own line. With what I have at the moment, initially ENTRY_GST_TEXT wraps first as a block, but then the smaller the screen size, the actual buttons and their descriptors get split up into separate lines. When this happens, the layout can become confusing for the user.
<label class="inputLabel" for="gst_registered">GST Registered:</label>
<?php echo zen_draw_radio_field('gst_registered', 'yes', ($gst_registered == 'yes' ? true : false),'id="gst_registered-yes"') . '<label class="radioButtonLabel" for="gst_registered-yes">' . Yes . '</label>' . zen_draw_radio_field('gst_registered', 'no', ($gst_registered == 'no' ? true : false), 'id="gst_registered-no"') . '<label class="radioButtonLabel" for="gst_registered-no">' . No . '</label>' . '<span class="userNote">' . ENTRY_GST_TEXT . '</span>'; ?>
CSS
.userNote {white-space:nowrap;}
If someone knows how to do this, could you please post the required code.
Thanks in advance