Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default separating radio buttons from label text

    I probably have my sideboxes either side of the middle column too wide - perhaps that is the reason - but any radio buttons are smack up against the label for them. I would like to add some small blank white graphic or something in between to cheat my way out of this. But putting a spacer means putting it in the right spot. For example:

    Name:  zencart_radio_buttons.gif
Views: 110
Size:  3.6 KB

    If I go to \includes\templates\template_default\templates\tpl_checkout_payment_default.php I see this part of the code (starting around line 133):

    Code:
    <?php
      $radio_buttons = 0;
      for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
    ?>
    <?php
        if (sizeof($selection) > 1) {
            if (empty($selection[$i]['noradio'])) {
     ?>
    <?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
    <?php   } ?>
    <?php
        } else {
    
    ?>
    <?php echo zen_draw_hidden_field('payment', $selection[$i]['id'], 'id="pmt-'.$selection[$i]['id'].'"'); ?>
    <?php
        }
    ?>
    <label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
    
    <?php
        if (defined('MODULE_ORDER_TOTAL_COD_STATUS') && MODULE_ORDER_TOTAL_COD_STATUS == 'true' and $selection[$i]['id'] == 'cod') {
    ?>
    <div class="alert"><?php echo TEXT_INFO_COD_FEES; ?></div>
    <?php
        } else {
          // echo 'WRONG ' . $selection[$i]['id'];
    ?>
    Where could I add a spacer?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: separating radio buttons from label text

    As always, it will be a lot easier to help if you provide a link to your site, in thsi format: mysiteDOTcom.

  3. #3
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: separating radio buttons from label text

    Don't want to burden anyone with having to login to see the problem but if you go here http://aapress.com.au/zencart/ and press GO TO CHECKOUT you will see an instance of what I mean.

  4. #4
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: separating radio buttons from label text

    Tpeck

    either asign a width to the radio button label and/or add padding to the LHS of actual buttons

    Code:
    label.inputLabelRadio {width:8em; float:left; font-size:0.9em;}
    and/or

    Code:
    label.radioButtonLabel {float:left; padding:0em 1em 0em 0.25em;}
    hope this helps

  5. #5
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: separating radio buttons from label text

    Yes, it helped - thanks - I ended up adding this to the template stylesheet:

    Code:
    LABEL.checkboxLabel, LABEL.radioButtonLabel {
            padding:0 5px 0 5px;
            }

 

 

Similar Threads

  1. Login Page: Remove HTML & TEXT-Only Radio Buttons
    By MeltDown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jun 2009, 10:27 AM
  2. vertical-align:middle; text on checkout page by radio buttons
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 24 Apr 2009, 02:28 PM
  3. Radio Button Label Attribute
    By gilesletheren in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Aug 2008, 04:02 AM
  4. Radio Buttons With No Label
    By fotofx in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 6 Jun 2008, 03:48 AM
  5. can I Remove the HTML & TEXT-Only options and Radio Buttons ?
    By jdunique in forum General Questions
    Replies: 6
    Last Post: 29 Apr 2008, 02:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR